commit | c5b4715e7eabbaec62c9849f30280252544d9a69 | [log] [tgz] |
---|---|---|
author | yyalan <yyalan@google.com> | Tue Jan 24 08:39:14 2023 +0000 |
committer | Yalan Yiue <yyalan@google.com> | Mon Feb 06 10:16:39 2023 +0000 |
tree | b9af31fd6622d88c71c1c3ee2dcb6752c303d1dd | |
parent | 8027f4608d53c702ff15433c89eb10c391555d41 [diff] |
[Partial Screensharing] Option text is cropped with max font size Set the TextView to wrap_content Before https://screenshot.googleplex.com/afFZ4vzuho2Q9US.png After https://screenshot.googleplex.com/6TASZXVnbHbSDNB.png Bug: 265002125 Test: manual Change-Id: I18d6ec9ed66e6ef91099fddb8b18ad18c99641dc
diff --git a/packages/SystemUI/res/layout/screen_record_dialog_audio_source.xml b/packages/SystemUI/res/layout/screen_record_dialog_audio_source.xml index 2567176..130472d 100644 --- a/packages/SystemUI/res/layout/screen_record_dialog_audio_source.xml +++ b/packages/SystemUI/res/layout/screen_record_dialog_audio_source.xml
@@ -23,7 +23,7 @@ <TextView android:id="@+id/screen_recording_dialog_source_text" android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:textAppearance="?android:attr/textAppearanceMedium" android:textSize="14sp"
diff --git a/packages/SystemUI/res/layout/screen_record_dialog_audio_source_selected.xml b/packages/SystemUI/res/layout/screen_record_dialog_audio_source_selected.xml index e2b8d33..9d9f5c2 100644 --- a/packages/SystemUI/res/layout/screen_record_dialog_audio_source_selected.xml +++ b/packages/SystemUI/res/layout/screen_record_dialog_audio_source_selected.xml
@@ -22,7 +22,7 @@ android:layout_weight="1"> <TextView android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:text="@string/screenrecord_audio_label" android:textAppearance="?android:attr/textAppearanceMedium" android:fontFamily="@*android:string/config_headlineFontFamily" @@ -30,7 +30,7 @@ <TextView android:id="@+id/screen_recording_dialog_source_text" android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:textColor="?android:attr/textColorSecondary" android:textAppearance="?android:attr/textAppearanceSmall"/> </LinearLayout> \ No newline at end of file
diff --git a/packages/SystemUI/res/layout/screen_record_options.xml b/packages/SystemUI/res/layout/screen_record_options.xml index 3f0eea90..6cc72dd 100644 --- a/packages/SystemUI/res/layout/screen_record_options.xml +++ b/packages/SystemUI/res/layout/screen_record_options.xml
@@ -67,7 +67,7 @@ android:importantForAccessibility="no"/> <TextView android:layout_width="0dp" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:minHeight="48dp" android:layout_weight="1" android:gravity="center_vertical"