change image button background

Daniel Gultsch created

Change summary

src/main/res/layout/activity_edit_account.xml | 8 ++++----
src/main/res/layout/activity_muc_details.xml  | 6 +++---
src/main/res/layout/presence_template.xml     | 2 +-
src/main/res/values-v21/dimens.xml            | 1 -
src/main/res/values/dimens.xml                | 2 +-
5 files changed, 9 insertions(+), 10 deletions(-)

Detailed changes

src/main/res/layout/activity_edit_account.xml 🔗

@@ -503,7 +503,7 @@
                         android:layout_alignParentRight="true"
                         android:layout_centerVertical="true"
                         android:alpha="?attr/icon_alpha"
-                        android:background="?android:selectableItemBackground"
+                        android:background="?attr/selectableItemBackgroundBorderless"
                         android:padding="@dimen/image_button_padding"
                         android:src="?attr/icon_remove"
                         android:visibility="visible" />
@@ -548,7 +548,7 @@
                         android:layout_alignParentRight="true"
                         android:layout_centerVertical="true"
                         android:alpha="?attr/icon_alpha"
-                        android:background="?android:selectableItemBackground"
+                        android:background="?attr/selectableItemBackgroundBorderless"
                         android:contentDescription="@string/copy_otr_clipboard_description"
                         android:padding="@dimen/image_button_padding"
                         android:src="?attr/icon_copy"
@@ -600,7 +600,7 @@
                             android:layout_width="wrap_content"
                             android:layout_height="wrap_content"
                             android:alpha="?attr/icon_alpha"
-                            android:background="?android:selectableItemBackground"
+                            android:background="?attr/selectableItemBackgroundBorderless"
                             android:contentDescription="@string/copy_omemo_clipboard_description"
                             android:padding="@dimen/image_button_padding"
                             android:src="?attr/icon_copy"
@@ -611,7 +611,7 @@
                             android:layout_width="wrap_content"
                             android:layout_height="wrap_content"
                             android:alpha="?attr/icon_alpha"
-                            android:background="?android:selectableItemBackground"
+                            android:background="?attr/selectableItemBackgroundBorderless"
                             android:contentDescription="@string/regenerate_omemo_key"
                             android:padding="@dimen/image_button_padding"
                             android:src="?attr/icon_refresh"

src/main/res/layout/activity_muc_details.xml 🔗

@@ -80,7 +80,7 @@
                         android:layout_alignParentRight="true"
                         android:layout_centerVertical="true"
                         android:alpha="?attr/icon_alpha"
-                        android:background="?android:selectableItemBackground"
+                        android:background="?attr/selectableItemBackgroundBorderless"
                         android:padding="@dimen/image_button_padding"
                         android:src="?attr/icon_edit_body"/>
                 </RelativeLayout>
@@ -111,7 +111,7 @@
                         android:layout_centerVertical="true"
                         android:layout_gravity="center_horizontal"
                         android:alpha="?attr/icon_alpha"
-                        android:background="?android:selectableItemBackground"
+                        android:background="?attr/selectableItemBackgroundBorderless"
                         android:padding="@dimen/image_button_padding"
                         android:src="?attr/icon_settings"/>
                 </RelativeLayout>
@@ -141,7 +141,7 @@
                         android:layout_centerVertical="true"
                         android:layout_gravity="center_horizontal"
                         android:alpha="?attr/icon_alpha"
-                        android:background="?android:selectableItemBackground"
+                        android:background="?attr/selectableItemBackgroundBorderless"
                         android:padding="@dimen/image_button_padding"
                         android:src="?attr/icon_notifications"/>
                 </RelativeLayout>

src/main/res/layout/presence_template.xml 🔗

@@ -43,7 +43,7 @@
         android:layout_centerVertical="true"
         android:layout_alignParentRight="true"
         android:layout_alignParentEnd="true"
-        android:background="?android:selectableItemBackground"
+        android:background="?attr/selectableItemBackgroundBorderless"
         android:padding="@dimen/image_button_padding"
         android:alpha="?attr/icon_alpha"
         android:src="?attr/icon_remove"/>

src/main/res/values-v21/dimens.xml 🔗

@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
 	<dimen name="elv_undo_bottom_offset">63dp</dimen> <!-- 48dp + 15dp -->
-	<dimen name="image_button_padding">12dp</dimen>
 </resources>

src/main/res/values/dimens.xml 🔗

@@ -3,7 +3,7 @@
 	<dimen name="activity_horizontal_margin">8dp</dimen>
 	<dimen name="activity_vertical_margin">8dp</dimen>
 	<dimen name="infocard_padding">16dp</dimen>
-	<dimen name="image_button_padding">8dp</dimen>
+	<dimen name="image_button_padding">12dp</dimen>
 	<dimen name="fineprint_size">11sp</dimen>
 	<dimen name="audio_player_width">224dp</dimen>
 	<dimen name="swipe_handle_size">32dp</dimen>