Add scrollbar to Settings app.

Overlay PreferenceTheme to add scrollbar to the view, and also add
scrollbar to the dashboard.

Change-Id: I2273b0825b200048bd1914923b551a593aa1e16d
Fixes: 30204662
Test: manual - Launch Settings and different sub-settings, and verify
that scrollbar is shown for screen that can be scrolled.
This commit is contained in:
Doris Ling
2016-08-18 15:16:23 -07:00
parent 73f857ce21
commit 706071126a
2 changed files with 6 additions and 1 deletions

View File

@@ -25,4 +25,5 @@
android:paddingStart="@dimen/dashboard_padding_start"
android:paddingEnd="@dimen/dashboard_padding_end"
android:paddingTop="@dimen/dashboard_padding_top"
android:paddingBottom="@dimen/dashboard_padding_bottom"/>
android:paddingBottom="@dimen/dashboard_padding_bottom"
android:scrollbars="vertical"/>

View File

@@ -105,6 +105,10 @@
<item name="android:dialogLayout">@layout/preference_dialog_edittext</item>
</style>
<style name="PreferenceTheme" parent="@*android:style/PreferenceTheme">
<item name="android:scrollbars">vertical</item>
</style>
<style name="PreferenceHeaderPanelSinglePane">
<item name="android:layout_marginStart">0dp</item>
<item name="android:layout_marginEnd">0dp</item>