Use background color for some lists

This commit is contained in:
arkon 2020-09-12 15:40:40 -04:00
parent af47103707
commit c0789cd6ba
4 changed files with 22 additions and 3 deletions

View 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>

View file

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

View file

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

View file

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