Update tertiary button style
- Use Roboto medium for v21+ (That font is not supported for versions below that) - Center align the link in GLIF v2 Test: Manual Bug: 37552391 Change-Id: I39a9c54983c2081b2c7eaabea39d2f1ce496be04
This commit is contained in:
parent
1a8259d4fb
commit
3ef160726f
|
@ -36,6 +36,12 @@
|
|||
<item name="android:background">?android:attr/colorPrimary</item>
|
||||
</style>
|
||||
|
||||
<!-- Button styles -->
|
||||
|
||||
<style name="SuwGlifButton.Tertiary" parent="SuwGlifButton.BaseTertiary">
|
||||
<item name="android:fontFamily">sans-serif-medium</item>
|
||||
</style>
|
||||
|
||||
<!-- Items styles -->
|
||||
|
||||
<style name="SuwItemContainer">
|
||||
|
|
|
@ -166,7 +166,7 @@
|
|||
|
||||
<!-- Use this style with a Button not a TextView, so that TalkBack will announce it as a
|
||||
button. -->
|
||||
<style name="SuwGlifButton.Tertiary" parent="SuwGlifButton.Secondary">
|
||||
<style name="SuwGlifButton.BaseTertiary" parent="SuwGlifButton.Secondary">
|
||||
<!-- This style can be applied to a button either as a "style" in XML, or as a theme in
|
||||
ContextThemeWrapper. These self-referencing attributes make sure this is applied as
|
||||
both to the button. -->
|
||||
|
@ -175,10 +175,13 @@
|
|||
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:fontFamily" tools:targetApi="jelly_bean">sans-serif</item>
|
||||
<item name="android:layout_gravity">?attr/suwGlifHeaderGravity</item>
|
||||
<item name="android:padding">0dp</item>
|
||||
<item name="android:textAllCaps" tools:targetApi="ice_cream_sandwich">false</item>
|
||||
</style>
|
||||
|
||||
<style name="SuwGlifButton.Tertiary" parent="SuwGlifButton.BaseTertiary" />
|
||||
|
||||
<!-- The start and end paddings are asymmetric because start buttons are borderless buttons
|
||||
which aligns the text label. -->
|
||||
<style name="SuwGlifButtonBar">
|
||||
|
|
Loading…
Reference in a new issue