Skip to content

Commit

Permalink
[Switch] Add associated text styles
Browse files Browse the repository at this point in the history
Also increases the min height to match the min touch target size.

PiperOrigin-RevId: 450987495
  • Loading branch information
drchen authored and afohrman committed May 26, 2022
1 parent 109748e commit 06bba00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -19,4 +19,5 @@
<dimen name="mtrl_switch_thumb_size">32dp</dimen>
<dimen name="mtrl_switch_track_width">52dp</dimen>
<dimen name="mtrl_switch_track_height">32dp</dimen>
<dimen name="mtrl_switch_text_padding">16dp</dimen>
</resources>
Expand Up @@ -21,5 +21,8 @@
<item name="thumbTint">@color/mtrl_switch_thumb_tint</item>
<item name="trackTint">@color/mtrl_switch_track_tint</item>
<item name="trackDecorationTint">@color/mtrl_switch_track_decoration_tint</item>
<item name="switchPadding">@dimen/mtrl_switch_text_padding</item>
<item name="android:textAppearance">?attr/textAppearanceBodyMedium</item>
<item name="android:minHeight">?attr/minTouchTargetSize</item>
</style>
</resources>

0 comments on commit 06bba00

Please sign in to comment.