From 73cf3bc3a1b622275de7eca4b5b49710eff7aeaa Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 7 Jun 2024 05:48:57 +0000 Subject: [PATCH] Add max width to the screen instructions view text - This ensures that the instruction wraps if the text is too long Fixes: 328577545 Fixes: 345128488 Flag: EXEMPT bugfix Test: Visual inspection of instructions view in different languages/form factors Change-Id: I73e889372a5c482277b0e4b61fb834304304c0a6 --- quickstep/res/layout/split_instructions_view.xml | 2 ++ quickstep/res/values-sw600dp/dimens.xml | 4 ++++ quickstep/res/values/dimens.xml | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/quickstep/res/layout/split_instructions_view.xml b/quickstep/res/layout/split_instructions_view.xml index 1115ff2b7c..797ea45be4 100644 --- a/quickstep/res/layout/split_instructions_view.xml +++ b/quickstep/res/layout/split_instructions_view.xml @@ -29,6 +29,7 @@ android:id="@+id/split_instructions_text" android:layout_height="wrap_content" android:layout_width="wrap_content" + android:maxWidth="@dimen/split_instructions_view_max_width" android:textColor="?androidprv:attr/textColorOnAccent" android:text="@string/toast_split_select_app" /> @@ -36,6 +37,7 @@ android:id="@+id/split_instructions_text_cancel" android:layout_height="wrap_content" android:layout_width="wrap_content" + android:layout_gravity="center_vertical" android:textColor="?androidprv:attr/textColorOnAccent" android:layout_marginStart="@dimen/split_instructions_start_margin_cancel" android:text="@string/toast_split_select_app_cancel" diff --git a/quickstep/res/values-sw600dp/dimens.xml b/quickstep/res/values-sw600dp/dimens.xml index f9528b3632..e24d8fea79 100644 --- a/quickstep/res/values-sw600dp/dimens.xml +++ b/quickstep/res/values-sw600dp/dimens.xml @@ -45,4 +45,8 @@ 38sp 15sp + + + 300dp + diff --git a/quickstep/res/values/dimens.xml b/quickstep/res/values/dimens.xml index 6bbf7f66ef..6b76311c71 100644 --- a/quickstep/res/values/dimens.xml +++ b/quickstep/res/values/dimens.xml @@ -490,4 +490,8 @@ 48dp + + + 220dp +