Move toast line height attribute to default style

To allow for the toast line height attribute to be overridden more
easily, relocating it to the TextAppearance.Toast style.

Bug: 191880008
Test: manual
Change-Id: I954d574383ecfc3bdc17d48725ea2e0f08b3b59c
This commit is contained in:
Alex Stetson
2021-09-15 10:11:14 -07:00
parent bafcdd73ca
commit b4f939647d
3 changed files with 1 additions and 2 deletions

View File

@@ -40,6 +40,5 @@
android:maxLines="2"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:lineHeight="20sp"
android:textAppearance="@style/TextAppearance.Toast"/>
</LinearLayout>

View File

@@ -966,6 +966,7 @@ please see styles_device_defaults.xml.
<style name="TextAppearance.Toast">
<item name="fontFamily">@*android:string/config_bodyFontFamily</item>
<item name="textSize">14sp</item>
<item name="lineHeight">20sp</item>
<item name="textColor">?android:attr/textColorPrimary</item>
</style>

View File

@@ -45,6 +45,5 @@
android:maxLines="2"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:lineHeight="20sp"
android:textAppearance="@*android:style/TextAppearance.Toast"/>
</LinearLayout>