From 97d07fa3aedde44368818551dc789eaff7bfb047 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Fri, 30 Nov 2012 12:36:53 -0800 Subject: Push scrollbars to screen edges. Push scrollbar to screen edges on custom ListView and ScrollViews to match Preferences framework behavior. Bug: 7633165 Change-Id: Ideecd0e243c7de7bf977caef2b1585e707a00ca4 --- res/layout/account_sync_screen.xml | 40 ++----- res/layout/installed_app_details.xml | 132 ++++++++++++--------- res/layout/manage_accounts_screen.xml | 5 +- res/layout/manage_applications_apps.xml | 1 + res/layout/power_usage_details.xml | 5 +- res/layout/running_service_details.xml | 9 +- res/layout/running_service_details_process.xml | 4 +- res/layout/running_service_details_service.xml | 25 ++-- res/layout/title.xml | 75 ++++++------ res/layout/two_buttons_panel.xml | 2 - src/com/android/settings/LocalePicker.java | 13 ++ src/com/android/settings/Utils.java | 9 +- src/com/android/settings/ZonePicker.java | 11 ++ .../settings/accounts/AccountSyncSettings.java | 7 +- .../settings/accounts/ManageAccountsSettings.java | 4 + .../settings/applications/InstalledAppDetails.java | 13 +- .../applications/RunningServiceDetails.java | 17 +-- .../settings/fuelgauge/PowerUsageDetail.java | 10 +- 18 files changed, 221 insertions(+), 161 deletions(-) diff --git a/res/layout/account_sync_screen.xml b/res/layout/account_sync_screen.xml index aa080cf..4c1bf7e 100644 --- a/res/layout/account_sync_screen.xml +++ b/res/layout/account_sync_screen.xml @@ -22,23 +22,23 @@ android:layout_height="match_parent" android:orientation="vertical"> - + - + android:clipToPadding="false" + android:scrollbarStyle="@*android:integer/preference_fragment_scrollbarStyle" /> - - + android:layout_height="match_parent" + android:clipToPadding="false" + android:scrollbarStyle="@*android:integer/preference_fragment_scrollbarStyle"> + @@ -33,16 +35,14 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:orientation="vertical" - android:paddingEnd="6dip" - android:paddingStart="6dip" - android:paddingTop="5dip" - android:paddingBottom="5dip" > + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:orientation="vertical"> + android:id="@+id/app_snippet" /> @@ -72,8 +72,9 @@ + android:orientation="vertical" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> - + android:paddingTop="6dip" /> - + + android:paddingTop="6dip" /> - + android:paddingTop="6dip" /> - + android:paddingTop="6dip" /> - + android:paddingTop="6dip" /> - @@ -289,6 +275,8 @@ android:orientation="horizontal" android:baselineAligned="true" android:layout_below="@id/cache_header" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" android:paddingTop="-1dip"> + android:gravity="center_vertical" /> -