From ab4d95aae0130db8718f5bd8f9708702aacb2fc8 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sun, 9 May 2021 09:19:54 +0800 Subject: [PATCH] background colors fixed --- app/src/main/res/color/tab_color_selector.xml | 5 +++++ app/src/main/res/layout/activity_main.xml | 5 ++++- app/src/main/res/values-night/colors.xml | 3 +++ app/src/main/res/values/colors.xml | 2 ++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/color/tab_color_selector.xml diff --git a/app/src/main/res/color/tab_color_selector.xml b/app/src/main/res/color/tab_color_selector.xml new file mode 100644 index 00000000..79262078 --- /dev/null +++ b/app/src/main/res/color/tab_color_selector.xml @@ -0,0 +1,5 @@ + + + + + \ 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 91bc9de1..1ce253cc 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -60,7 +60,10 @@ + android:layout_height="wrap_content" + app:tabIconTint="@color/tab_color_selector" + app:tabIndicatorColor="@color/selectedColor" + > diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 64850ee8..df254d90 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -2,10 +2,13 @@ #67EA94 #141414 + #141414 #212121 #212121 #141414 #141414 #FFFFFF #FFFFFF + #67EA94 + #AAAAAA diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 4b4ca6a0..6181a526 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -9,4 +9,6 @@ #FFFFFF #000000 #000000 + #67EA94 + #212121