mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-28 10:38:48 +03:00
Use background color for some lists
This commit is contained in:
parent
af47103707
commit
c0789cd6ba
4 changed files with 22 additions and 3 deletions
19
app/src/main/res/drawable/list_item_selector_background.xml
Normal file
19
app/src/main/res/drawable/list_item_selector_background.xml
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="?attr/rippleColor">
|
||||
<item>
|
||||
<selector>
|
||||
<item android:state_selected="true">
|
||||
<color android:color="?attr/rippleColor" />
|
||||
</item>
|
||||
|
||||
<item android:state_activated="true">
|
||||
<color android:color="?attr/rippleColor" />
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<color android:color="?android:attr/colorBackground" />
|
||||
</item>
|
||||
</selector>
|
||||
</item>
|
||||
</ripple>
|
|
@ -4,7 +4,7 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height"
|
||||
android:background="@drawable/list_item_selector">
|
||||
android:background="@drawable/list_item_selector_background">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/reorder"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||
android:background="@drawable/list_item_selector"
|
||||
android:background="@drawable/list_item_selector_background"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp">
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/material_component_lists_two_line_height"
|
||||
android:background="@drawable/list_item_selector"
|
||||
android:background="@drawable/list_item_selector_background"
|
||||
android:paddingEnd="16dp">
|
||||
|
||||
<ImageView
|
||||
|
|
Loading…
Reference in a new issue