Make items both activatable and selectable

Refs #150
pull/152/head
M66B 6 years ago
parent d0e10cf153
commit a5d05ce3c8

@ -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" />
<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>

@ -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" />
<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>

Loading…
Cancel
Save