Skip to content

Instantly share code, notes, and snippets.

@ricknout
Created July 31, 2020 13:11
Show Gist options
  • Save ricknout/eb13daadd3a83e47ffe8b44ec621b25c to your computer and use it in GitHub Desktop.
Save ricknout/eb13daadd3a83e47ffe8b44ec621b25c to your computer and use it in GitHub Desktop.
MDC-Android type theme attributes
<!-- Copyright 2020 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
<!-- In res/values/themes.xml -->
<style name="Theme.App.Base" parent="Theme.MaterialComponents.*">
...
<item name="textAppearanceHeadline6">
@style/TextAppearance.App.Headline6
</item>
<item name="textAppearanceBody2">
@style/TextAppearance.App.Body2
</item>
<item name="textAppearanceButton">
@style/TextAppearance.App.Button
</item>
<!-- Using default values for textAppearanceSubtitle1, textAppearanceCaption, etc. -->
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment