Make list_entry background a drawable.

Color state lists don't seem to work any more on Android 10.
This commit is contained in:
Andreas Schildbach 2019-09-05 12:07:47 +02:00
parent 78dd8dd9a9
commit 1608288e29
8 changed files with 9 additions and 9 deletions

View file

@ -3,12 +3,12 @@
<!-- activated, plain -->
<item android:state_activated="true"><shape>
<solid android:color="#cfffaf" />
<solid android:color="#ffcfffaf" />
</shape></item>
<!-- plain -->
<item><shape>
<solid android:color="#ffffff" />
<solid android:color="#ffffffff" />
</shape></item>
</selector>

View file

@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/list_entry"
android:background="@drawable/list_entry_background"
android:descendantFocusability="blocksDescendants"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"

View file

@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/list_entry"
android:background="@drawable/list_entry_background"
android:descendantFocusability="blocksDescendants"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"

View file

@ -2,7 +2,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/list_entry"
android:background="@drawable/list_entry_background"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground" >

View file

@ -2,7 +2,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/list_entry"
android:background="@drawable/list_entry_background"
android:descendantFocusability="blocksDescendants"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"

View file

@ -2,7 +2,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/list_entry"
android:background="@drawable/list_entry_background"
android:descendantFocusability="blocksDescendants"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"

View file

@ -2,7 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/list_entry"
android:background="@drawable/list_entry_background"
android:clipToPadding="false"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"

View file

@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/list_entry"
android:background="@drawable/list_entry_background"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground" >