diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-30 15:26:33 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-30 16:28:03 +0200 |
commit | 75dfa0643be6967b2c99f5a42f179003d41bde3f (patch) | |
tree | 7d3a759a2db83692906a230db6824a1babd8cd85 /app/src/main/res/drawable | |
parent | d5cde431589ee4de8d3d1c019e65f4b9e609a301 (diff) |
Show different color for multiselection
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/res/drawable')
-rw-r--r-- | app/src/main/res/drawable/list_item_background.xml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/src/main/res/drawable/list_item_background.xml b/app/src/main/res/drawable/list_item_background.xml index f064676a..d62f3237 100644 --- a/app/src/main/res/drawable/list_item_background.xml +++ b/app/src/main/res/drawable/list_item_background.xml @@ -1,12 +1,13 @@ <?xml version="1.0" encoding="utf-8"?> -<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> <item> <selector> - <item android:state_activated="true"> + <item app:state_multiselected="true" android:state_activated="true"> + <color android:color="?android:attr/colorControlActivated" /> + </item> + <item app:state_multiselected="false" android:state_activated="true"> <color android:color="?android:attr/colorControlHighlight" /> - <!-- TODO(msf): depending on whether or not we are in multiselect mode, choose instead: - <color android:color="?android:attr/colorControlActivated" /> - --> </item> </selector> </item> |