Make items both activatable and selectable

Refs #150
This commit is contained in:
M66B 2019-03-06 11:06:57 +00:00
parent d0e10cf153
commit a5d05ce3c8
2 changed files with 22 additions and 8 deletions

View File

@ -1,5 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/darkColorItemSelected" android:state_activated="true" />
<item android:drawable="@android:color/transparent" />
</selector>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:attr/selectableItemBackground" />
<item>
<selector>
<item
android:drawable="@color/darkColorItemSelected"
android:state_activated="true" />
<item android:drawable="@android:color/transparent" />
</selector>
</item>
</layer-list>

View File

@ -1,5 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/lightColorItemSelected" android:state_activated="true" />
<item android:drawable="@android:color/transparent" />
</selector>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:attr/selectableItemBackground" />
<item>
<selector>
<item
android:drawable="@color/lightColorItemSelected"
android:state_activated="true" />
<item android:drawable="@android:color/transparent" />
</selector>
</item>
</layer-list>