From 5f9329dccdd4bf23446977d59ab6fb485ebacf55 Mon Sep 17 00:00:00 2001 From: Jeremy Sim Date: Tue, 26 Mar 2024 21:44:02 -0700 Subject: [PATCH] Fix bug with long strings not aligning left on menu items This CL sets gravity="start" and ellipsize="end" so that longer strings in the Overview app dropdown menu are still left-aligned and ellipsized when they are longer than the container. Fixes: 330426535 Flag: N/A Test: Manual Change-Id: I1e62412c9b8be41a8dbb6b0597a69a283a56e3f0 (cherry picked from commit 6867b18db207958f5b08d53819f76d6bdf70caa7) --- quickstep/res/layout/task_view_menu_option.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickstep/res/layout/task_view_menu_option.xml b/quickstep/res/layout/task_view_menu_option.xml index 30ab4b102e..ffe240180e 100644 --- a/quickstep/res/layout/task_view_menu_option.xml +++ b/quickstep/res/layout/task_view_menu_option.xml @@ -41,6 +41,8 @@ android:layout_marginStart="@dimen/task_menu_option_text_start_margin" android:textSize="14sp" android:textColor="?androidprv:attr/materialColorOnSurface" - android:focusable="false" /> + android:focusable="false" + android:gravity="start" + android:ellipsize="end" />