From a69c96adbe347425bb2f21b120781e1e10638798 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 8 Mar 2019 10:13:15 +0000 Subject: [PATCH] Refactoring --- ...ground_dark.xml => activatable_item_background_dark.xml} | 0 ...ound_light.xml => activatable_item_background_light.xml} | 0 app/src/main/res/layout/item_account.xml | 2 +- app/src/main/res/layout/item_answer.xml | 2 +- app/src/main/res/layout/item_attachment.xml | 2 +- app/src/main/res/layout/item_folder.xml | 2 +- app/src/main/res/layout/item_identity.xml | 2 +- app/src/main/res/layout/item_image.xml | 2 +- app/src/main/res/layout/item_message_compact.xml | 5 ++--- app/src/main/res/layout/item_message_normal.xml | 5 ++--- app/src/main/res/layout/item_rule.xml | 2 +- app/src/main/res/values/styles.xml | 6 +++--- 12 files changed, 14 insertions(+), 16 deletions(-) rename app/src/main/res/drawable/{item_background_dark.xml => activatable_item_background_dark.xml} (100%) rename app/src/main/res/drawable/{item_background_light.xml => activatable_item_background_light.xml} (100%) diff --git a/app/src/main/res/drawable/item_background_dark.xml b/app/src/main/res/drawable/activatable_item_background_dark.xml similarity index 100% rename from app/src/main/res/drawable/item_background_dark.xml rename to app/src/main/res/drawable/activatable_item_background_dark.xml diff --git a/app/src/main/res/drawable/item_background_light.xml b/app/src/main/res/drawable/activatable_item_background_light.xml similarity index 100% rename from app/src/main/res/drawable/item_background_light.xml rename to app/src/main/res/drawable/activatable_item_background_light.xml diff --git a/app/src/main/res/layout/item_account.xml b/app/src/main/res/layout/item_account.xml index 06aed61640..19ecb5de5d 100644 --- a/app/src/main/res/layout/item_account.xml +++ b/app/src/main/res/layout/item_account.xml @@ -8,7 +8,7 @@ android:id="@+id/clItem" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?attr/drawableItemBackground" + android:background="?attr/activatableItemBackground" android:foreground="?attr/selectableItemBackground"> diff --git a/app/src/main/res/layout/item_folder.xml b/app/src/main/res/layout/item_folder.xml index dbed0e7db8..9fb240cffe 100644 --- a/app/src/main/res/layout/item_folder.xml +++ b/app/src/main/res/layout/item_folder.xml @@ -8,7 +8,7 @@ android:id="@+id/clItem" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?attr/drawableItemBackground" + android:background="?attr/activatableItemBackground" android:foreground="?attr/selectableItemBackground"> diff --git a/app/src/main/res/layout/item_message_compact.xml b/app/src/main/res/layout/item_message_compact.xml index 57499702da..5ce4a69fe6 100644 --- a/app/src/main/res/layout/item_message_compact.xml +++ b/app/src/main/res/layout/item_message_compact.xml @@ -8,11 +8,10 @@ android:id="@+id/clItem" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?attr/drawableItemBackground" + android:background="?attr/activatableItemBackground" android:descendantFocusability="beforeDescendants" android:focusable="true" - android:focusableInTouchMode="true" - android:foreground="?attr/selectableItemBackground"> + android:focusableInTouchMode="true"> + android:focusableInTouchMode="true"> - +