Use background color for some lists

(cherry picked from commit c0789cd6bafc6d5017ee032e6a8f4d2c94744f9c)
This commit is contained in:
arkon 2020-09-12 15:40:40 -04:00 committed by Jobobby04
parent 0f16150613
commit 4e3288b2af
6 changed files with 24 additions and 6 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" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height" 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 <ImageView
android:id="@+id/reorder" android:id="@+id/reorder"

View File

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight" android:layout_height="?android:attr/listPreferredItemHeight"
android:background="@drawable/list_item_selector" android:background="@drawable/list_item_selector_background"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingEnd="16dp"> android:paddingEnd="16dp">

View File

@ -5,7 +5,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height" 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 <ImageView
android:id="@+id/image" android:id="@+id/image"

View File

@ -4,8 +4,7 @@
android:id="@+id/reader_chapter_layout" android:id="@+id/reader_chapter_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="60dp" android:layout_height="60dp"
android:background="@drawable/list_item_selector" android:background="@drawable/list_item_selector_background"
android:backgroundTint="?attr/colorSurface"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View File

@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/material_component_lists_two_line_height" 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"> android:paddingEnd="16dp">
<ImageView <ImageView