diff --git a/catalog/java/io/material/catalog/font/FontMainDemoFragment.java b/catalog/java/io/material/catalog/font/FontMainDemoFragment.java index 32d1e914b..721336a0f 100644 --- a/catalog/java/io/material/catalog/font/FontMainDemoFragment.java +++ b/catalog/java/io/material/catalog/font/FontMainDemoFragment.java @@ -119,11 +119,11 @@ public class FontMainDemoFragment extends DemoFragment { TypedValue value = new TypedValue(); for (int i = 0; i < stylesArray.length(); i++) { - // 1. Get the attribute from the array: ?attr/textAppearanceHeadline1 + // 1. Get the attribute from the array: ?attr/textAppearanceBodyLarge stylesArray.getValue(i, value); int attribute = value.data; - // 2. Get the style from the attribute: @style/TextAppearance.MaterialComponents.Headline1 + // 2. Get the style from the attribute: @style/TextAppearance.MaterialComponents.BodyLarge TypedArray a = context.obtainStyledAttributes(new int[] {attribute}); int style = a.getResourceId(0, 0); a.recycle(); diff --git a/catalog/java/io/material/catalog/font/res/layout/cat_font_styles_item.xml b/catalog/java/io/material/catalog/font/res/layout/cat_font_styles_item.xml index aba8f7aa3..6dfd02182 100644 --- a/catalog/java/io/material/catalog/font/res/layout/cat_font_styles_item.xml +++ b/catalog/java/io/material/catalog/font/res/layout/cat_font_styles_item.xml @@ -32,8 +32,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" - android:textAppearance="?attr/textAppearanceCaption" - app:textAllCaps="true"/> + android:textAppearance="?attr/textAppearanceLabelSmall" /> - ?attr/textAppearanceHeadline1 - ?attr/textAppearanceHeadline2 - ?attr/textAppearanceHeadline3 - ?attr/textAppearanceHeadline4 - ?attr/textAppearanceHeadline5 - ?attr/textAppearanceHeadline6 - ?attr/textAppearanceSubtitle1 - ?attr/textAppearanceSubtitle2 - ?attr/textAppearanceBody1 - ?attr/textAppearanceBody2 - ?attr/textAppearanceCaption - ?attr/textAppearanceButton - ?attr/textAppearanceOverline + ?attr/textAppearanceDisplayLarge + ?attr/textAppearanceDisplayMedium + ?attr/textAppearanceDisplaySmall + ?attr/textAppearanceHeadlineLarge + ?attr/textAppearanceHeadlineMedium + ?attr/textAppearanceHeadlineSmall + ?attr/textAppearanceTitleLarge + ?attr/textAppearanceTitleMedium + ?attr/textAppearanceTitleSmall + ?attr/textAppearanceBodyLarge + ?attr/textAppearanceBodyMedium + ?attr/textAppearanceBodySmall + ?attr/textAppearanceLabelLarge + ?attr/textAppearanceLabelMedium + ?attr/textAppearanceLabelSmall - Headline 1 - Headline 2 - Headline 3 - Headline 4 - Headline 5 - Headline 6 - Subtitle 1 - Subtitle 2 - Body 1 - Body 2 - Caption - Button - Overline + Display Large + Display Medium + Display Small + Headline Large + Headline Medium + Headline Small + Title Large + Title Medium + Title Small + Body Large + Body Medium + Body Small + Label Large + Label Medium + Label Small