Commit 82815b37 authored by Theresa's avatar Theresa Committed by Commit Bot

Use minHeight for accessibility text scaling preference

Use a minHeight instead of a layout_height for the accessibility
text scaling prefence so that text doesn't get cut off.

BUG=907366

Change-Id: Ieb25e34ef0104a50f94901aebbc5b232600d49c2
Reviewed-on: https://chromium-review.googlesource.com/c/1387692Reviewed-by: default avatarBecky Zhou <huayinz@chromium.org>
Commit-Queue: Theresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619486}
parent d855623a
......@@ -32,12 +32,13 @@
<TextView
android:id="@+id/preview"
android:layout_width="match_parent"
android:layout_height="180dp"
android:layout_height="wrap_content"
android:minHeight="180dp"
android:layout_marginTop="10dp"
android:background="#fafafa"
android:padding="16dp"
android:text="@string/font_size_preview_text"
android:textColor="?android:attr/textColorPrimary"
android:textAppearance="@style/TextAppearance.AccessibilityTextPreference"
android:lineSpacingExtra="6dp" />
</LinearLayout>
\ No newline at end of file
......@@ -201,6 +201,9 @@
<item name="android:layout_marginTop">2dp</item>
<item name="android:background">@color/modern_grey_600</item>
</style>
<style name="TextAppearance.AccessibilityTextPreference">
<item name="android:textColor">?android:attr/textColorPrimary</item>
</style>
<style name="ThemeWithActionBarBase" parent="Theme.AppCompat.Light">
<item name="android:windowBackground">@drawable/action_bar_activity_bg</item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment