summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author josephpv <josephpv@google.com> 2024-03-19 17:51:34 +0000
committer josephpv <josephpv@google.com> 2024-03-19 21:29:46 +0000
commit1cbdd7f1cbe134f13f6c2a93ee8e948b9133b022 (patch)
treebba88b11cd8893212d8144ccd36be9d26cf2d7c8
parentf40482420f71cd653889f4d9b037032dd6f9fe7f (diff)
set background property for the layout used in makeCustomToastWithIcon()
Set android:background property in the layout used in custom icon toasts to match with the layout of the systemui toast. Screenshots: go/ss/AcaRQUJQfh79wDw.png go/ss/5j4oD8xydwX7HTX.png go/ss/7y9BguWfYBnng7y.png Bug:330176222 Test: Verify toast with custom icon has round corners Change-Id: I686b71d76278bb44b7c4dd3b830bd4bd14889d07
-rw-r--r--core/res/res/layout/transient_notification_with_icon.xml9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/res/res/layout/transient_notification_with_icon.xml b/core/res/res/layout/transient_notification_with_icon.xml
index 0dfb3adc8364..04518b2a75a2 100644
--- a/core/res/res/layout/transient_notification_with_icon.xml
+++ b/core/res/res/layout/transient_notification_with_icon.xml
@@ -22,7 +22,7 @@
android:orientation="horizontal"
android:gravity="center_vertical"
android:maxWidth="@dimen/toast_width"
- android:background="?android:attr/colorBackground"
+ android:background="@android:drawable/toast_frame"
android:elevation="@dimen/toast_elevation"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
@@ -31,8 +31,11 @@
<ImageView
android:id="@android:id/icon"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_marginTop="10dp"
+ android:layout_marginBottom="10dp"
+ android:layout_marginEnd="10dp" />
<TextView
android:id="@android:id/message"