From 53dcb016f61c446a5adcdf179f024c6f59112fec Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 20 Feb 2019 22:05:15 +0200 Subject: [PATCH] leave nav bar header at primary color; accent is too strong a tiny divider at the top sets it apart from the action bar --- .../res/drawable-anydpi-v21/side_nav_bar.xml | 2 +- .../res/drawable/list_divider_inside_out.xml | 26 +++++++++++++++++++ app/src/main/res/layout/activity_main.xml | 2 ++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable/list_divider_inside_out.xml diff --git a/app/src/main/res/drawable-anydpi-v21/side_nav_bar.xml b/app/src/main/res/drawable-anydpi-v21/side_nav_bar.xml index c141e312..ddb10ac3 100644 --- a/app/src/main/res/drawable-anydpi-v21/side_nav_bar.xml +++ b/app/src/main/res/drawable-anydpi-v21/side_nav_bar.xml @@ -18,6 +18,6 @@ \ No newline at end of file diff --git a/app/src/main/res/drawable/list_divider_inside_out.xml b/app/src/main/res/drawable/list_divider_inside_out.xml new file mode 100644 index 00000000..391a7d47 --- /dev/null +++ b/app/src/main/res/drawable/list_divider_inside_out.xml @@ -0,0 +1,26 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 8a380b0e..bd9f2f84 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -235,7 +235,9 @@ android:id="@+id/nav_upper" android:layout_width="match_parent" android:layout_height="wrap_content" + android:divider="@drawable/list_divider_inside_out" android:orientation="vertical" + android:showDividers="beginning" app:layout_constraintBottom_toTopOf="@+id/nav_fixed_items" app:layout_constraintTop_toBottomOf="@+id/nav_header"> -- 2.39.5