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
This commit is contained in:
Winson Chung
2024-06-07 05:48:57 +00:00
parent dcbd5e40c5
commit 73cf3bc3a1
3 changed files with 10 additions and 0 deletions

View File

@@ -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"

View File

@@ -45,4 +45,8 @@
<dimen name="allset_page_allset_text_size">38sp</dimen>
<dimen name="allset_page_swipe_up_text_size">15sp</dimen>
<!-- Splitscreen -->
<!-- Max width of the split instructions view -->
<dimen name="split_instructions_view_max_width">300dp</dimen>
</resources>

View File

@@ -490,4 +490,8 @@
<!-- Digital Wellbeing -->
<dimen name="digital_wellbeing_toast_height">48dp</dimen>
<!-- Splitscreen -->
<!-- Max width of the split instructions view -->
<dimen name="split_instructions_view_max_width">220dp</dimen>
</resources>