From dce0d827a48fba282480df3a6a576a6b70236a26 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 10 Aug 2022 12:54:42 -0500 Subject: [PATCH] Use a list item background that can handle being selected --- src/cheogram/res/drawable/list_choice.xml | 9 +++++++++ src/main/res/layout/simple_list_item.xml | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/cheogram/res/drawable/list_choice.xml diff --git a/src/cheogram/res/drawable/list_choice.xml b/src/cheogram/res/drawable/list_choice.xml new file mode 100644 index 0000000000000000000000000000000000000000..0efabfd88ee4eb40bfb85f3e90963e56880839b7 --- /dev/null +++ b/src/cheogram/res/drawable/list_choice.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/src/main/res/layout/simple_list_item.xml b/src/main/res/layout/simple_list_item.xml index 2944632e82d778e8d434c909bd30eba01ea04dc0..74eee550a3515ca4d9ef20ff6f57da4b26deba48 100644 --- a/src/main/res/layout/simple_list_item.xml +++ b/src/main/res/layout/simple_list_item.xml @@ -22,4 +22,5 @@ android:paddingLeft="8dp" android:paddingRight="8dp" android:textAppearance="@style/TextAppearance.Conversations.Body1" - android:textColor="?attr/edit_text_color" /> + android:textColor="?attr/edit_text_color" + android:background="@drawable/list_choice" />