diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2020-03-17 16:09:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 16:09:50 +0100 |
commit | bb13b1e5f30ac4ee9fa5b5722cfad0e66bd9ecdc (patch) | |
tree | 45746d06cfe09ca4e9d5e4937cefbf32ba3497c7 | |
parent | 54056dd8d95fe88d1a582c55e066778ce25eff50 (diff) | |
parent | 53f9c8779757cf5579fc806ab21b20099e8bfc6e (diff) | |
download | AntennaPod-bb13b1e5f30ac4ee9fa5b5722cfad0e66bd9ecdc.zip |
Merge pull request #3938 from ByteHamster/sidebar-size
Increased sidebar size
-rw-r--r-- | app/src/main/res/layout/nav_list.xml | 16 | ||||
-rw-r--r-- | core/src/main/res/values/dimens.xml | 1 |
2 files changed, 8 insertions, 9 deletions
diff --git a/app/src/main/res/layout/nav_list.xml b/app/src/main/res/layout/nav_list.xml index e2c6919d2..d6b8a540d 100644 --- a/app/src/main/res/layout/nav_list.xml +++ b/app/src/main/res/layout/nav_list.xml @@ -2,15 +2,17 @@ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/nav_layout" - android:layout_width="@dimen/drawer_width" + android:layout_width="match_parent" android:layout_height="match_parent" + android:layout_marginEnd="24dp" + android:layout_marginRight="24dp" android:layout_gravity="start" android:background="?android:attr/windowBackground" android:orientation="vertical"> <LinearLayout 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_alignParentBottom="true" android:background="?attr/selectableItemBackground" @@ -36,7 +38,7 @@ tools:src="@android:drawable/sym_def_app_icon" /> <TextView - android:layout_width="wrap_content" + android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginLeft="16dp" @@ -51,7 +53,7 @@ <View android:id="@+id/divider" - android:layout_width="@dimen/drawer_width" + android:layout_width="match_parent" android:layout_height="1dp" android:layout_above="@id/nav_settings" android:layout_centerVertical="true" @@ -60,17 +62,15 @@ <ListView android:id="@+id/nav_list" - android:layout_width="@dimen/drawer_width" + android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@id/divider" - android:layout_alignParentTop="true" android:choiceMode="singleChoice" android:clipToPadding="false" android:divider="@android:color/transparent" android:dividerHeight="0dp" android:paddingBottom="@dimen/list_vertical_padding" - android:paddingTop="@dimen/list_vertical_padding" + android:paddingTop="8dp" android:scrollbarStyle="outsideOverlay" - tools:background="@android:color/holo_purple" tools:listitem="@layout/nav_listitem" /> </RelativeLayout> diff --git a/core/src/main/res/values/dimens.xml b/core/src/main/res/values/dimens.xml index bef2d311c..5083eb749 100644 --- a/core/src/main/res/values/dimens.xml +++ b/core/src/main/res/values/dimens.xml @@ -17,7 +17,6 @@ <dimen name="feeditemlist_header_height">132dp</dimen> <dimen name="thumbnail_length_navlist">40dp</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_textleftpadding">16dp</dimen> |