From 0eeae4f8d0b22eba69a807167b191341761ad6c9 Mon Sep 17 00:00:00 2001 From: Angela Wang Date: Mon, 10 Apr 2023 08:34:56 +0000 Subject: [PATCH] Fixes Flash Notification preview button alignment issue in RTL layout The preview button text is left-aligned in right to left language. Makes it to be right-aligned with adding layout_gravity=start on the view. Bug: 276608857 Test: checks the UI manually Change-Id: I1322c1fcc433670863603c2d0b5438f39ecef998 --- res/layout/flash_notification_preview_preference.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/layout/flash_notification_preview_preference.xml b/res/layout/flash_notification_preview_preference.xml index ecc6f4f01e4..b4be0f62df1 100644 --- a/res/layout/flash_notification_preview_preference.xml +++ b/res/layout/flash_notification_preview_preference.xml @@ -34,7 +34,7 @@ android:id="@android:id/title" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_gravity="center_vertical" + android:layout_gravity="start|center_vertical" android:paddingVertical="@dimen/settingslib_switch_title_margin" android:ellipsize="end" android:textAppearance="?android:attr/textAppearanceListItem"