From 855711c2dde4116f9ff701731cd7d9df8237b383 Mon Sep 17 00:00:00 2001 From: Tsung-Mao Fang Date: Mon, 1 Feb 2021 15:30:04 +0800 Subject: [PATCH] Intro text now left aligned with header - Font changes to google sans - Font size is 14 sp - Left aligned with title header Change-Id: Ib6b16fbfb30db5386a74b62b14faadee6f07dc36 Test: See the screen Fix: 173087905 --- .../res/layout/top_intro_preference.xml | 20 ++-------------- .../TopIntroPreference/res/values/styles.xml | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 18 deletions(-) create mode 100644 packages/SettingsLib/TopIntroPreference/res/values/styles.xml diff --git a/packages/SettingsLib/TopIntroPreference/res/layout/top_intro_preference.xml b/packages/SettingsLib/TopIntroPreference/res/layout/top_intro_preference.xml index 19fa91f72f0da..0287b1f064d05 100644 --- a/packages/SettingsLib/TopIntroPreference/res/layout/top_intro_preference.xml +++ b/packages/SettingsLib/TopIntroPreference/res/layout/top_intro_preference.xml @@ -20,27 +20,11 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?android:attr/listPreferredItemHeight" - android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingStart="20dp" android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" android:background="?android:attr/selectableItemBackground" android:clipToPadding="false"> - - - - + android:textAppearance="@style/TextAppearance.TopIntroText"/> \ No newline at end of file diff --git a/packages/SettingsLib/TopIntroPreference/res/values/styles.xml b/packages/SettingsLib/TopIntroPreference/res/values/styles.xml new file mode 100644 index 0000000000000..e7eb9f4953103 --- /dev/null +++ b/packages/SettingsLib/TopIntroPreference/res/values/styles.xml @@ -0,0 +1,24 @@ + + + + +