From 1608288e291c069eb3e73160b941a28c3ffd420f Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Thu, 5 Sep 2019 12:07:47 +0200 Subject: [PATCH] Make list_entry background a drawable. Color state lists don't seem to work any more on Android 10. --- .../list_entry.xml => drawable/list_entry_background.xml} | 4 ++-- oeffi/res/layout/directions_query_history_entry.xml | 2 +- oeffi/res/layout/favorites_list_entry.xml | 2 +- oeffi/res/layout/navigation_drawer_entry.xml | 2 +- oeffi/res/layout/network_picker_entry.xml | 2 +- oeffi/res/layout/plans_picker_entry.xml | 2 +- oeffi/res/layout/stations_station_details_entry.xml | 2 +- oeffi/res/layout/stations_station_entry.xml | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) rename oeffi/res/{color/list_entry.xml => drawable/list_entry_background.xml} (75%) diff --git a/oeffi/res/color/list_entry.xml b/oeffi/res/drawable/list_entry_background.xml similarity index 75% rename from oeffi/res/color/list_entry.xml rename to oeffi/res/drawable/list_entry_background.xml index 30cca76..7ce0299 100644 --- a/oeffi/res/color/list_entry.xml +++ b/oeffi/res/drawable/list_entry_background.xml @@ -3,12 +3,12 @@ - + - + diff --git a/oeffi/res/layout/directions_query_history_entry.xml b/oeffi/res/layout/directions_query_history_entry.xml index 5fd2c26..e5d21fa 100644 --- a/oeffi/res/layout/directions_query_history_entry.xml +++ b/oeffi/res/layout/directions_query_history_entry.xml @@ -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" diff --git a/oeffi/res/layout/favorites_list_entry.xml b/oeffi/res/layout/favorites_list_entry.xml index ddbbd3e..5a1e23a 100644 --- a/oeffi/res/layout/favorites_list_entry.xml +++ b/oeffi/res/layout/favorites_list_entry.xml @@ -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" diff --git a/oeffi/res/layout/navigation_drawer_entry.xml b/oeffi/res/layout/navigation_drawer_entry.xml index 39e4a39..0415e55 100644 --- a/oeffi/res/layout/navigation_drawer_entry.xml +++ b/oeffi/res/layout/navigation_drawer_entry.xml @@ -2,7 +2,7 @@ diff --git a/oeffi/res/layout/network_picker_entry.xml b/oeffi/res/layout/network_picker_entry.xml index 15bf87c..bdd75f9 100644 --- a/oeffi/res/layout/network_picker_entry.xml +++ b/oeffi/res/layout/network_picker_entry.xml @@ -2,7 +2,7 @@