From c10567ea26dddea0400e3d850b48dd7d68be9a83 Mon Sep 17 00:00:00 2001 From: Ioana Alexandru Date: Mon, 9 Dec 2024 14:11:30 +0100 Subject: Ellipsize "Clear all" text when necessary In some languages and screen configurations, the "Clear all" text does not fit on the screen. Let's show an ellipsis at the end in that case. Bug: 375010573 Test: set language to Romanian and increase display size Flag: com.android.systemui.notifications_redesign_footer_view Change-Id: I16034fb2c6856f4277292896cf85f622a7fe71dd --- packages/SystemUI/res/layout/notification_2025_footer.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/res/layout/notification_2025_footer.xml b/packages/SystemUI/res/layout/notification_2025_footer.xml index 71c77a56b6a8..9b3d67f7b4a2 100644 --- a/packages/SystemUI/res/layout/notification_2025_footer.xml +++ b/packages/SystemUI/res/layout/notification_2025_footer.xml @@ -64,6 +64,8 @@ android:contentDescription="@string/accessibility_clear_all" android:focusable="true" android:text="@string/clear_all_notifications_text" + android:ellipsize="end" + android:maxLines="1" app:layout_constraintEnd_toStartOf="@id/settings_button" app:layout_constraintStart_toEndOf="@id/history_button" /> -- cgit v1.2.3-59-g8ed1b