From f8b5f04e5a0e1431165977c8cd14f4071df4a579 Mon Sep 17 00:00:00 2001 From: Keyvan Amiri Date: Thu, 19 Jan 2017 11:52:59 -0800 Subject: [PATCH] Fixed the text styling for framework SeekBarPrefenrece SeekBarPreference provided by framework used the wrong text sizes for title and summary for both material and non-material layouts. Made the text appearance consistent with the rest of preference widgets in framework. Also note that the framework SeekBarPreference is hidden and cannot be used externally. The support library version is provided under v7 preference lib. Bug: 34068978 Test: Making sure that the text styling matches the rest of framework preference widgets. Change-Id: I3947a0bdd995e183e07e73e088916c1a3359ffe0 --- core/res/res/layout/preference_widget_seekbar.xml | 2 +- core/res/res/layout/preference_widget_seekbar_material.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/res/res/layout/preference_widget_seekbar.xml b/core/res/res/layout/preference_widget_seekbar.xml index 05daa1a42011a..0c6dbf1f24005 100644 --- a/core/res/res/layout/preference_widget_seekbar.xml +++ b/core/res/res/layout/preference_widget_seekbar.xml @@ -50,7 +50,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceMedium" + android:textAppearance="?android:attr/textAppearanceLarge" android:ellipsize="marquee" android:fadingEdge="horizontal" /> diff --git a/core/res/res/layout/preference_widget_seekbar_material.xml b/core/res/res/layout/preference_widget_seekbar_material.xml index f70a4726aa9b9..6c72c9ed007d7 100644 --- a/core/res/res/layout/preference_widget_seekbar_material.xml +++ b/core/res/res/layout/preference_widget_seekbar_material.xml @@ -51,7 +51,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceMedium" + android:textAppearance="?android:attr/textAppearanceListItem" android:ellipsize="marquee" android:fadingEdge="horizontal" /> @@ -60,7 +60,7 @@ android:layout_height="wrap_content" android:layout_below="@android:id/title" android:layout_alignStart="@android:id/title" - android:textAppearance="?android:attr/textAppearanceSmall" + android:textAppearance="?android:attr/textAppearanceListItemSecondary" android:textColor="?android:attr/textColorSecondary" android:maxLines="4" />