From 8ba426350f3510e24875292283f3b6719859650a Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 17 Jul 2020 14:20:36 -0400 Subject: [PATCH] Fix checked state for manga header buttons --- app/src/main/res/color/outlined_button_bg.xml | 5 +++++ app/src/main/res/color/outlined_button_stroke.xml | 4 ++++ app/src/main/res/layout/manga_info_header.xml | 2 ++ app/src/main/res/values/styles.xml | 7 +++++-- 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/color/outlined_button_bg.xml create mode 100644 app/src/main/res/color/outlined_button_stroke.xml diff --git a/app/src/main/res/color/outlined_button_bg.xml b/app/src/main/res/color/outlined_button_bg.xml new file mode 100644 index 0000000000..b95df40de4 --- /dev/null +++ b/app/src/main/res/color/outlined_button_bg.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/color/outlined_button_stroke.xml b/app/src/main/res/color/outlined_button_stroke.xml new file mode 100644 index 0000000000..0702ae4c0a --- /dev/null +++ b/app/src/main/res/color/outlined_button_stroke.xml @@ -0,0 +1,4 @@ + + + + diff --git a/app/src/main/res/layout/manga_info_header.xml b/app/src/main/res/layout/manga_info_header.xml index ae0a036643..57d9f0ae63 100644 --- a/app/src/main/res/layout/manga_info_header.xml +++ b/app/src/main/res/layout/manga_info_header.xml @@ -128,6 +128,7 @@ style="@style/Theme.Widget.Button.Icon" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:checkable="true" android:text="@string/add_to_library" app:icon="@drawable/ic_favorite_border_24dp" /> @@ -137,6 +138,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="8dp" + android:checkable="true" android:text="@string/manga_tracking_tab" android:visibility="gone" app:icon="@drawable/ic_sync_24dp" diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index b6a890f45e..bb38bd7cac 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -264,9 +264,12 @@ false 16dp - ?colorAccent - ?colorAccent + ?attr/colorAccent + ?attr/colorAccent ?attr/colorOnBackground + + @color/outlined_button_bg + @color/outlined_button_stroke