From 5d3e3687f9098986aec73a28dd40cb3ae12e95ed Mon Sep 17 00:00:00 2001 From: pachecosf Date: Wed, 16 Jan 2019 18:26:42 -0800 Subject: [PATCH 1/7] Adding some highlighting of drawer items --- app/src/main/res/layout/nav_listitem.xml | 3 ++- core/src/main/res/drawable/activated_color_dark.xml | 4 ++++ core/src/main/res/drawable/activated_color_light.xml | 4 ++++ core/src/main/res/drawable/activated_color_trueblack.xml | 4 ++++ core/src/main/res/drawable/drawer_list_selector_dark.xml | 4 ++++ .../src/main/res/drawable/drawer_list_selector_light.xml | 4 ++++ .../main/res/drawable/drawer_list_selector_trueblack.xml | 4 ++++ core/src/main/res/values/attrs.xml | 1 + core/src/main/res/values/styles.xml | 9 +++++++++ 9 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 core/src/main/res/drawable/activated_color_dark.xml create mode 100644 core/src/main/res/drawable/activated_color_light.xml create mode 100644 core/src/main/res/drawable/activated_color_trueblack.xml create mode 100644 core/src/main/res/drawable/drawer_list_selector_dark.xml create mode 100644 core/src/main/res/drawable/drawer_list_selector_light.xml create mode 100644 core/src/main/res/drawable/drawer_list_selector_trueblack.xml diff --git a/app/src/main/res/layout/nav_listitem.xml b/app/src/main/res/layout/nav_listitem.xml index c140533e6..d60165d85 100644 --- a/app/src/main/res/layout/nav_listitem.xml +++ b/app/src/main/res/layout/nav_listitem.xml @@ -5,7 +5,8 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="@dimen/listitem_iconwithtext_height" - tools:background="@android:color/darker_gray"> + tools:background="@android:color/darker_gray" + android:background= "?attr/nav_drawer_list_selector"> + + + \ No newline at end of file diff --git a/core/src/main/res/drawable/activated_color_light.xml b/core/src/main/res/drawable/activated_color_light.xml new file mode 100644 index 000000000..6e547d8d9 --- /dev/null +++ b/core/src/main/res/drawable/activated_color_light.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/core/src/main/res/drawable/activated_color_trueblack.xml b/core/src/main/res/drawable/activated_color_trueblack.xml new file mode 100644 index 000000000..2b3036f49 --- /dev/null +++ b/core/src/main/res/drawable/activated_color_trueblack.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/core/src/main/res/drawable/drawer_list_selector_dark.xml b/core/src/main/res/drawable/drawer_list_selector_dark.xml new file mode 100644 index 000000000..9a1c85d06 --- /dev/null +++ b/core/src/main/res/drawable/drawer_list_selector_dark.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/core/src/main/res/drawable/drawer_list_selector_light.xml b/core/src/main/res/drawable/drawer_list_selector_light.xml new file mode 100644 index 000000000..bd81f2bfd --- /dev/null +++ b/core/src/main/res/drawable/drawer_list_selector_light.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/core/src/main/res/drawable/drawer_list_selector_trueblack.xml b/core/src/main/res/drawable/drawer_list_selector_trueblack.xml new file mode 100644 index 000000000..0694eb4a6 --- /dev/null +++ b/core/src/main/res/drawable/drawer_list_selector_trueblack.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/core/src/main/res/values/attrs.xml b/core/src/main/res/values/attrs.xml index 16a6d9185..c6ac68715 100644 --- a/core/src/main/res/values/attrs.xml +++ b/core/src/main/res/values/attrs.xml @@ -1,6 +1,7 @@ + diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 79773619f..07bcad2df 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -94,6 +94,7 @@ @style/Widget.AntennaPod.Button @style/ProgressBarDark @style/AntennaPod.Dialog.Dark + @drawable/drawer_list_selector_dark @color/white @drawable/ic_sd_white_24dp @drawable/ic_swap_vertical_white_24dp @@ -197,6 +198,7 @@ @color/holo_blue_light @style/Widget.AntennaPod.Button @style/AntennaPod.Dialog.Light + @drawable/drawer_list_selector_light @drawable/ic_sd_grey600_24dp @drawable/ic_swap_vertical_grey600_24dp @drawable/ic_poll_box_grey600_24dp @@ -270,6 +272,8 @@