From dd19c3c8ba6e701806255a5f26629ef9d67a96cb Mon Sep 17 00:00:00 2001 From: Andrew Sapperstein Date: Mon, 5 Jun 2017 18:48:10 -0700 Subject: [PATCH] Update battery & storage settings to use headline font. Updates several locations to use config_headlineFontFamily as the android:fontFamily or Typeface object. This allows OEMs to specify a custom headline font. Bug: 36855735 Test: ag/2360364 Change-Id: I627515d2afd5ff018aae10843d099b8c83880635 --- res/layout/battery_header.xml | 1 + res/layout/storage_summary.xml | 7 ++++--- res/layout/storage_summary_donut.xml | 5 +++-- src/com/android/settings/widget/DonutView.java | 4 ++++ .../StorageSummaryDonutPreferenceControllerTest.java | 7 ++++++- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/res/layout/battery_header.xml b/res/layout/battery_header.xml index aeb61e18907..b7a8199163c 100644 --- a/res/layout/battery_header.xml +++ b/res/layout/battery_header.xml @@ -39,6 +39,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" + android:fontFamily="@*android:string/config_headlineFontFamily" android:textAppearance="@android:style/TextAppearance.Material.Display1"/> + android:textSize="36sp"/>