From dda4c34d59bec458f48428e3785eab0582f7bd18 Mon Sep 17 00:00:00 2001 From: Mill Chen Date: Wed, 6 Jan 2021 21:08:30 +0800 Subject: [PATCH] Update ScrollView to NestedScrollView in the font size page To ensure that the collapsing toolbar work as usual, we need to change the ScrollView to NestedScrollView. Bug: 176884647 Test: manual test and visual verified 1) Navigate to Settings -> Display -> Font size 2) Check if the sample text area is scrollable Change-Id: I1cb8a20f1efd69213e1eaadfe84a53aff9bc640f --- .../font_size_activity.xml | 4 +-- res/layout/font_size_activity.xml | 25 ++++++++++--------- res/layout/font_size_preview.xml | 5 ++-- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/res/layout-sw300dp-land/font_size_activity.xml b/res/layout-sw300dp-land/font_size_activity.xml index 666470424ae..7703eb2fc75 100644 --- a/res/layout-sw300dp-land/font_size_activity.xml +++ b/res/layout-sw300dp-land/font_size_activity.xml @@ -36,7 +36,7 @@ android:padding="6dp" /> - - + diff --git a/res/layout/font_size_activity.xml b/res/layout/font_size_activity.xml index 32de37d0f89..c3b26ae7526 100644 --- a/res/layout/font_size_activity.xml +++ b/res/layout/font_size_activity.xml @@ -14,17 +14,18 @@ limitations under the License. --> - + + android:layout_height="wrap_content"> - + + android:padding="6dp"/> + android:elevation="2dp"/> + android:contentDescription="@string/font_size_make_smaller_desc"/> + android:contentDescription="@string/font_size_make_larger_desc"/> + android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"/> - + diff --git a/res/layout/font_size_preview.xml b/res/layout/font_size_preview.xml index 669ece05341..2b1773bcee3 100644 --- a/res/layout/font_size_preview.xml +++ b/res/layout/font_size_preview.xml @@ -14,7 +14,8 @@ limitations under the License. --> - @@ -57,4 +58,4 @@ android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"/> - +