From 26f4f53ec2f08aabc3df2006be601cae46f9cf21 Mon Sep 17 00:00:00 2001 From: Bram van de Kerkhof Date: Wed, 25 May 2016 00:09:24 +0200 Subject: [PATCH] Fixed spinner + improved ripple (#310) --- .../tachiyomi/ui/catalogue/CatalogueFragment.kt | 2 +- .../res/drawable-v21/list_item_selector_dark.xml | 12 ++++-------- .../res/drawable-v21/list_item_selector_light.xml | 12 ++++-------- .../main/res/drawable/list_item_selector_dark.xml | 10 +++++----- .../res/drawable/list_item_selector_light.xml | 10 +++++----- app/src/main/res/layout/spinner_item.xml | 8 ++++++++ app/src/main/res/values/attrs.xml | 1 + app/src/main/res/values/colors.xml | 4 ++++ app/src/main/res/values/styles.xml | 15 +++++++-------- app/src/main/res/values/themes.xml | 2 ++ 10 files changed, 41 insertions(+), 35 deletions(-) create mode 100644 app/src/main/res/layout/spinner_item.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueFragment.kt index 84402e35e..a88ee4c80 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueFragment.kt @@ -164,7 +164,7 @@ class CatalogueFragment : BaseRxFragment(), FlexibleViewHold val spinnerAdapter = ArrayAdapter(themedContext, android.R.layout.simple_spinner_item, presenter.sources) - spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item) + spinnerAdapter.setDropDownViewResource(R.layout.spinner_item) val onItemSelected = object : AdapterView.OnItemSelectedListener { override fun onItemSelected(parent: AdapterView<*>, view: View?, position: Int, id: Long) { diff --git a/app/src/main/res/drawable-v21/list_item_selector_dark.xml b/app/src/main/res/drawable-v21/list_item_selector_dark.xml index 3757b9bf5..07ed74dd4 100644 --- a/app/src/main/res/drawable-v21/list_item_selector_dark.xml +++ b/app/src/main/res/drawable-v21/list_item_selector_dark.xml @@ -1,16 +1,14 @@ - + - + - + @@ -18,6 +16,4 @@ - - \ No newline at end of file diff --git a/app/src/main/res/drawable-v21/list_item_selector_light.xml b/app/src/main/res/drawable-v21/list_item_selector_light.xml index ab9d9b675..692d94f2b 100644 --- a/app/src/main/res/drawable-v21/list_item_selector_light.xml +++ b/app/src/main/res/drawable-v21/list_item_selector_light.xml @@ -1,16 +1,14 @@ - + - + - + @@ -18,6 +16,4 @@ - - \ No newline at end of file diff --git a/app/src/main/res/drawable/list_item_selector_dark.xml b/app/src/main/res/drawable/list_item_selector_dark.xml index 97a108663..dd0779885 100644 --- a/app/src/main/res/drawable/list_item_selector_dark.xml +++ b/app/src/main/res/drawable/list_item_selector_dark.xml @@ -1,10 +1,10 @@ - + - - - + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/list_item_selector_light.xml b/app/src/main/res/drawable/list_item_selector_light.xml index a33b89da0..73e54c92f 100644 --- a/app/src/main/res/drawable/list_item_selector_light.xml +++ b/app/src/main/res/drawable/list_item_selector_light.xml @@ -8,12 +8,12 @@ - + - - - + + + \ No newline at end of file diff --git a/app/src/main/res/layout/spinner_item.xml b/app/src/main/res/layout/spinner_item.xml new file mode 100644 index 000000000..33c4191d5 --- /dev/null +++ b/app/src/main/res/layout/spinner_item.xml @@ -0,0 +1,8 @@ + + \ No newline at end of file diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index 450783da1..d62be4166 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -21,4 +21,5 @@ + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 88448b02c..44d0061b2 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -10,6 +10,8 @@ @color/md_black_1000_54 @color/md_black_1000_38 @color/md_black_1000_12 + @color/md_black_1000_12 + @color/md_grey_300 @color/md_grey_100 @@ -24,6 +26,7 @@ @color/md_white_1000_70 @color/md_white_1000_50 @color/md_white_1000_12 + @color/md_white_1000_20 @color/md_black_1000 @color/md_grey_900 @@ -45,6 +48,7 @@ #FFFFFFFF #B3FFFFFF #80FFFFFF + #33FFFFFF #1FFFFFFF diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 975aef227..9a942d596 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -4,9 +4,7 @@ - + + + + @@ -172,11 +176,6 @@ ?android:attr/textColorPrimary @style/TextAppearance.AppCompat.Title - -