From 39229a6aea99fa3a312c95d63999c9b10d1eb503 Mon Sep 17 00:00:00 2001 From: menghanli Date: Mon, 3 May 2021 21:25:54 +0800 Subject: [PATCH] [Material Next] Typography for font style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set fontFamily with Typography config which follows the rule for font and supported font family changing in “Style & Wallpaper”. Bug: 186065669 Test: Manual testing Change-Id: I8b94a7e643fa72e91519209cbad2e3d65b6c6749 --- res/layout/palette_listview_item.xml | 2 +- res/values/styles.xml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/res/layout/palette_listview_item.xml b/res/layout/palette_listview_item.xml index e67b7cbf7d0..012e740ae3a 100644 --- a/res/layout/palette_listview_item.xml +++ b/res/layout/palette_listview_item.xml @@ -23,7 +23,7 @@ android:id="@+id/item_textview" android:layout_width="match_parent" android:layout_height="42dp" - android:fontFamily="roboto-bold" + android:fontFamily="@*android:string/config_headlineFontFamilyMedium" android:gravity="center_vertical" android:maxLength="20" android:paddingLeft="@dimen/accessibility_layout_margin_start_end" diff --git a/res/values/styles.xml b/res/values/styles.xml index 783a1487d17..26193981f50 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -665,7 +665,7 @@ center 20sp ?android:attr/textColorPrimary - google-sans-medium + @*android:string/config_headlineFontFamilyMedium