Fix text cropping in pairing dialog

Eliminated child view margins, which were causing incorrect content height calculation within the parent ScrollView. Added padding to ScrollView to maintain visual spacing and ensure all text is visible.

Bug: 328519578
Test: manually, attach screenshots in bug
Flag: EXEMPT bugfix
Change-Id: If31c8a9b491ca3bee834ba470dbc1ec4e8a5e9bc
This commit is contained in:
Angela Wang
2024-06-27 10:28:10 +00:00
parent a6c54bc98f
commit 2746c6015e

View File

@@ -20,13 +20,13 @@
<ScrollView <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_width="match_parent"> android:layout_width="match_parent"
android:paddingTop="@dimen/bluetooth_dialog_padding_top">
<LinearLayout <LinearLayout
android:paddingStart="16dip" android:paddingStart="16dip"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_marginTop="@dimen/bluetooth_dialog_padding_top"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
@@ -85,7 +85,7 @@
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_weight="1" android:layout_weight="1"
android:layout_marginEnd="10dp" android:layout_marginEnd="10dp"
android:orientation="vertical"> android:orientation="vertical">
@@ -105,7 +105,6 @@
android:id="@+id/phonebook_sharing_message_confirm_pin" android:id="@+id/phonebook_sharing_message_confirm_pin"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="48dp" android:layout_height="48dp"
android:layout_weight="0"
android:gravity="center_vertical" android:gravity="center_vertical"
android:contentDescription="@string/bluetooth_pairing_phonebook_toggle_text" android:contentDescription="@string/bluetooth_pairing_phonebook_toggle_text"
android:switchMinWidth="48dp" /> android:switchMinWidth="48dp" />