diff --git a/app/src/main/java/eu/faircode/email/AdapterAnswer.java b/app/src/main/java/eu/faircode/email/AdapterAnswer.java index 3f6492fe02..3969e51abd 100644 --- a/app/src/main/java/eu/faircode/email/AdapterAnswer.java +++ b/app/src/main/java/eu/faircode/email/AdapterAnswer.java @@ -58,7 +58,7 @@ public class AdapterAnswer extends RecyclerView.Adapter ViewHolder(View itemView) { super(itemView); - this.itemView = itemView; + this.itemView = itemView.findViewById(R.id.clItem); image = itemView.findViewById(R.id.image); caption = itemView.findViewById(R.id.caption); } diff --git a/app/src/main/res/drawable/item_background_dark.xml b/app/src/main/res/drawable/item_background_dark.xml index a07c4dff7c..599daabefd 100644 --- a/app/src/main/res/drawable/item_background_dark.xml +++ b/app/src/main/res/drawable/item_background_dark.xml @@ -1,12 +1,5 @@ - - - - - - - - - + + + + diff --git a/app/src/main/res/drawable/item_background_light.xml b/app/src/main/res/drawable/item_background_light.xml index be0eb49773..5a00473632 100644 --- a/app/src/main/res/drawable/item_background_light.xml +++ b/app/src/main/res/drawable/item_background_light.xml @@ -1,12 +1,5 @@ - - - - - - - - - + + + + diff --git a/app/src/main/res/layout/item_account.xml b/app/src/main/res/layout/item_account.xml index 828f1728cd..06aed61640 100644 --- a/app/src/main/res/layout/item_account.xml +++ b/app/src/main/res/layout/item_account.xml @@ -8,7 +8,8 @@ android:id="@+id/clItem" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?attr/drawableItemBackground"> + android:background="?attr/drawableItemBackground" + android:foreground="?attr/selectableItemBackground"> - - - - - \ No newline at end of file + android:layout_height="wrap_content" + android:background="?attr/drawableItemBackground" + android:foreground="?attr/selectableItemBackground"> + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_attachment.xml b/app/src/main/res/layout/item_attachment.xml index 581c4d6bbd..e90dfb3bab 100644 --- a/app/src/main/res/layout/item_attachment.xml +++ b/app/src/main/res/layout/item_attachment.xml @@ -1,111 +1,119 @@ - + android:layout_height="wrap_content"> - - - - - - - - - - - - - - - - - - \ No newline at end of file + android:background="?attr/drawableItemBackground" + android:foreground="?attr/selectableItemBackground" + android:paddingTop="6dp" + android:paddingBottom="6dp"> + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_folder.xml b/app/src/main/res/layout/item_folder.xml index d8c6429d12..dbed0e7db8 100644 --- a/app/src/main/res/layout/item_folder.xml +++ b/app/src/main/res/layout/item_folder.xml @@ -8,7 +8,8 @@ android:id="@+id/clItem" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?attr/drawableItemBackground"> + android:background="?attr/drawableItemBackground" + android:foreground="?attr/selectableItemBackground"> + android:background="?attr/drawableItemBackground" + android:foreground="?attr/selectableItemBackground"> - + android:layout_height="wrap_content"> - + android:background="?attr/drawableItemBackground" + android:foreground="?attr/selectableItemBackground" + android:padding="6dp"> - - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_message_compact.xml b/app/src/main/res/layout/item_message_compact.xml index 2ab7d16af2..57499702da 100644 --- a/app/src/main/res/layout/item_message_compact.xml +++ b/app/src/main/res/layout/item_message_compact.xml @@ -11,7 +11,8 @@ android:background="?attr/drawableItemBackground" android:descendantFocusability="beforeDescendants" android:focusable="true" - android:focusableInTouchMode="true"> + android:focusableInTouchMode="true" + android:foreground="?attr/selectableItemBackground"> + android:focusableInTouchMode="true" + android:foreground="?attr/selectableItemBackground"> + android:foreground="?attr/selectableItemBackground" + android:paddingTop="3dp" + android:paddingBottom="3dp"> + android:background="?attr/drawableItemBackground" + android:foreground="?attr/selectableItemBackground">