From e55bbde6c3ae00365e45c7534c242d010e4025b8 Mon Sep 17 00:00:00 2001 From: Ioana Alexandru Date: Tue, 17 Dec 2024 13:12:07 +0100 Subject: Add dismiss button to new templates The original templates were modified after the new ones were forked. This should bring them back to parity. See also I82e96c7e12d07929242e0c0033e8562cb58fbfd9 that this is based on. Bug: 378660052 Test: TBD Flag: android.app.notifications_redesign_templates Change-Id: I4f1a95d98268b4c07f43f0f28df7757122321c31 --- .../notification_2025_template_collapsed_base.xml | 40 ++++++++-------------- .../notification_2025_template_collapsed_media.xml | 7 ++++ ...ification_2025_template_collapsed_messaging.xml | 6 ++++ .../layout/notification_2025_template_header.xml | 31 ++++++----------- 4 files changed, 37 insertions(+), 47 deletions(-) diff --git a/core/res/res/layout/notification_2025_template_collapsed_base.xml b/core/res/res/layout/notification_2025_template_collapsed_base.xml index 76c810bdb2c1..e91e1115ac1c 100644 --- a/core/res/res/layout/notification_2025_template_collapsed_base.xml +++ b/core/res/res/layout/notification_2025_template_collapsed_base.xml @@ -157,39 +157,27 @@ android:maxDrawableHeight="@dimen/notification_right_icon_size" /> - - - - - - - - + android:layout_height="wrap_content" + android:layout_gravity="center_vertical|end" + /> - + + + diff --git a/core/res/res/layout/notification_2025_template_collapsed_media.xml b/core/res/res/layout/notification_2025_template_collapsed_media.xml index 2e0a7afc3cd1..2d367337bb6f 100644 --- a/core/res/res/layout/notification_2025_template_collapsed_media.xml +++ b/core/res/res/layout/notification_2025_template_collapsed_media.xml @@ -194,4 +194,11 @@ + + + diff --git a/core/res/res/layout/notification_2025_template_collapsed_messaging.xml b/core/res/res/layout/notification_2025_template_collapsed_messaging.xml index f644adefda9d..fbecb8c30b9c 100644 --- a/core/res/res/layout/notification_2025_template_collapsed_messaging.xml +++ b/core/res/res/layout/notification_2025_template_collapsed_messaging.xml @@ -199,6 +199,12 @@ + + - - - - - + android:layout_centerVertical="true" + android:layout_alignParentEnd="true" /> - + -- cgit v1.2.3-59-g8ed1b