From 371b0b2132312130edcffd68f82d03d352155526 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 26 Sep 2020 19:27:39 -0400 Subject: [PATCH] Color selected bottom nav item with accent color when theme isn't blue --- app/src/main/res/color/bottom_nav_selector.xml | 8 ++++++++ app/src/main/res/layout/main_activity.xml | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/color/bottom_nav_selector.xml diff --git a/app/src/main/res/color/bottom_nav_selector.xml b/app/src/main/res/color/bottom_nav_selector.xml new file mode 100644 index 000000000..306dd53f3 --- /dev/null +++ b/app/src/main/res/color/bottom_nav_selector.xml @@ -0,0 +1,8 @@ + + + + + + diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml index 4c7b24383..ac97a5f09 100644 --- a/app/src/main/res/layout/main_activity.xml +++ b/app/src/main/res/layout/main_activity.xml @@ -44,9 +44,11 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" + app:itemIconTint="@color/bottom_nav_selector" + app:itemTextColor="@color/bottom_nav_selector" app:labelVisibilityMode="labeled" - app:layout_insetEdge="bottom" app:layout_behavior="@string/hide_bottom_view_on_scroll_behavior" + app:layout_insetEdge="bottom" app:menu="@menu/bottom_nav" />