mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Added selector for bookmarks to indicate selection
This commit is contained in:
parent
cf3d00ad5b
commit
1cc808ee99
13
res/drawable/bookmarks_selector.xml
Normal file
13
res/drawable/bookmarks_selector.xml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<item
|
||||||
|
android:state_pressed="true"
|
||||||
|
android:color="@color/black_regular_mat_design"/>
|
||||||
|
<item
|
||||||
|
android:state_activated="true"
|
||||||
|
android:color="@color/greyed_out_selected"/>
|
||||||
|
<item
|
||||||
|
android:color="@color/black_regular_mat_design" />
|
||||||
|
</selector>
|
@ -11,7 +11,7 @@
|
|||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_margin="15dp"
|
android:layout_margin="15dp"
|
||||||
android:textColor="@color/material_blue_grey_900"
|
android:textColor="@drawable/bookmarks_selector"
|
||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
@ -15,4 +15,5 @@
|
|||||||
<color name="selected_light">#0F000000</color>
|
<color name="selected_light">#0F000000</color>
|
||||||
<color name="divider_light">#1E000000</color>
|
<color name="divider_light">#1E000000</color>
|
||||||
<color name="greyed_out_selected">#BDBDBD</color>
|
<color name="greyed_out_selected">#BDBDBD</color>
|
||||||
|
<color name="black_regular_mat_design">#212121</color>
|
||||||
</resources>
|
</resources>
|
Loading…
x
Reference in New Issue
Block a user