Last active
January 19, 2023 09:27
-
-
Save ricknout/ea2b9dce7f83a5027d17fa5edf2e3c56 to your computer and use it in GitHub Desktop.
AppCompat to MDC-Android type update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Copyright 2020 Google LLC. | |
| SPDX-License-Identifier: Apache-2.0 --> | |
| <com.google.android.material.card.MaterialCardView | |
| ...> | |
| ... | |
| <TextView | |
| android:id=”@+id/headerText” | |
| - android:textAppearance="@style/TextAppearance.AppCompat.Title" | |
| + android:textAppearance="?attr/textAppearanceHeadline6" | |
| ... /> | |
| <TextView | |
| android:id=”@+id/subheadText” | |
| android:textColor="?android:attr/textColorSecondary" | |
| - android:textAppearance="@style/TextAppearance.AppCompat.Body2" | |
| + android:textAppearance="?attr/textAppearanceBody2" | |
| ... /> | |
| <TextView | |
| android:id=”@+id/supportingText” | |
| android:textColor="?android:attr/textColorSecondary" | |
| - android:textAppearance="@style/TextAppearance.AppCompat.Body2" | |
| + android:textAppearance="?attr/textAppearanceBody2" | |
| ... /> | |
| </com.google.android.material.card.MaterialCardView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment