Merge pull request #3938 from ByteHamster/sidebar-size

Increased sidebar size
This commit is contained in:
H. Lehmann 2020-03-17 16:09:50 +01:00 committed by GitHub
commit bb13b1e5f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View File

@ -2,15 +2,17 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/nav_layout" android:id="@+id/nav_layout"
android:layout_width="@dimen/drawer_width" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginEnd="24dp"
android:layout_marginRight="24dp"
android:layout_gravity="start" android:layout_gravity="start"
android:background="?android:attr/windowBackground" android:background="?android:attr/windowBackground"
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout <LinearLayout
android:id="@+id/nav_settings" android:id="@+id/nav_settings"
android:layout_width="@dimen/drawer_width" android:layout_width="match_parent"
android:layout_height="@dimen/listitem_iconwithtext_height" android:layout_height="@dimen/listitem_iconwithtext_height"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:background="?attr/selectableItemBackground" android:background="?attr/selectableItemBackground"
@ -36,7 +38,7 @@
tools:src="@android:drawable/sym_def_app_icon" /> tools:src="@android:drawable/sym_def_app_icon" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginLeft="16dp" android:layout_marginLeft="16dp"
@ -51,7 +53,7 @@
<View <View
android:id="@+id/divider" android:id="@+id/divider"
android:layout_width="@dimen/drawer_width" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:layout_above="@id/nav_settings" android:layout_above="@id/nav_settings"
android:layout_centerVertical="true" android:layout_centerVertical="true"
@ -60,17 +62,15 @@
<ListView <ListView
android:id="@+id/nav_list" android:id="@+id/nav_list"
android:layout_width="@dimen/drawer_width" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_above="@id/divider" android:layout_above="@id/divider"
android:layout_alignParentTop="true"
android:choiceMode="singleChoice" android:choiceMode="singleChoice"
android:clipToPadding="false" android:clipToPadding="false"
android:divider="@android:color/transparent" android:divider="@android:color/transparent"
android:dividerHeight="0dp" android:dividerHeight="0dp"
android:paddingBottom="@dimen/list_vertical_padding" android:paddingBottom="@dimen/list_vertical_padding"
android:paddingTop="@dimen/list_vertical_padding" android:paddingTop="8dp"
android:scrollbarStyle="outsideOverlay" android:scrollbarStyle="outsideOverlay"
tools:background="@android:color/holo_purple"
tools:listitem="@layout/nav_listitem" /> tools:listitem="@layout/nav_listitem" />
</RelativeLayout> </RelativeLayout>

View File

@ -17,7 +17,6 @@
<dimen name="feeditemlist_header_height">132dp</dimen> <dimen name="feeditemlist_header_height">132dp</dimen>
<dimen name="thumbnail_length_navlist">40dp</dimen> <dimen name="thumbnail_length_navlist">40dp</dimen>
<dimen name="listview_secondary_button_width">48dp</dimen> <dimen name="listview_secondary_button_width">48dp</dimen>
<dimen name="drawer_width">280dp</dimen>
<dimen name="listitem_iconwithtext_height">48dp</dimen> <dimen name="listitem_iconwithtext_height">48dp</dimen>
<dimen name="listitem_iconwithtext_textleftpadding">16dp</dimen> <dimen name="listitem_iconwithtext_textleftpadding">16dp</dimen>