diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-11-30 12:36:53 -0800 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2012-11-30 16:15:09 -0800 |
commit | 97d07fa3aedde44368818551dc789eaff7bfb047 (patch) | |
tree | dec682dae35f943a1251a98455c6db4f37d72f0d /src/com/android/settings/accounts | |
parent | 6f8cd76870b01cd27333d3ddd8dcb3a7951e3375 (diff) | |
download | packages_apps_settings-97d07fa3aedde44368818551dc789eaff7bfb047.zip packages_apps_settings-97d07fa3aedde44368818551dc789eaff7bfb047.tar.gz packages_apps_settings-97d07fa3aedde44368818551dc789eaff7bfb047.tar.bz2 |
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
Diffstat (limited to 'src/com/android/settings/accounts')
-rw-r--r-- | src/com/android/settings/accounts/AccountSyncSettings.java | 7 | ||||
-rw-r--r-- | src/com/android/settings/accounts/ManageAccountsSettings.java | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/com/android/settings/accounts/AccountSyncSettings.java b/src/com/android/settings/accounts/AccountSyncSettings.java index 196908e..c346017 100644 --- a/src/com/android/settings/accounts/AccountSyncSettings.java +++ b/src/com/android/settings/accounts/AccountSyncSettings.java @@ -47,9 +47,11 @@ import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; +import android.widget.ListView; import android.widget.TextView; import com.android.settings.R; +import com.android.settings.Utils; import com.google.android.collect.Lists; import com.google.android.collect.Maps; @@ -149,7 +151,10 @@ public class AccountSyncSettings extends AccountPreferenceBase { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final View view = inflater.inflate(R.layout.account_sync_screen, container, false); - + + final ListView list = (ListView) view.findViewById(android.R.id.list); + Utils.prepareCustomPreferencesList(container, view, list, false); + initializeUi(view); return view; diff --git a/src/com/android/settings/accounts/ManageAccountsSettings.java b/src/com/android/settings/accounts/ManageAccountsSettings.java index a27fbbd..46aa566 100644 --- a/src/com/android/settings/accounts/ManageAccountsSettings.java +++ b/src/com/android/settings/accounts/ManageAccountsSettings.java @@ -46,12 +46,14 @@ import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.CompoundButton; +import android.widget.ListView; import android.widget.Switch; import android.widget.TextView; import com.android.settings.AccountPreference; import com.android.settings.R; import com.android.settings.Settings; +import com.android.settings.Utils; import java.util.ArrayList; import java.util.Date; @@ -101,6 +103,8 @@ public class ManageAccountsSettings extends AccountPreferenceBase public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final View view = inflater.inflate(R.layout.manage_accounts_screen, container, false); + final ListView list = (ListView) view.findViewById(android.R.id.list); + Utils.prepareCustomPreferencesList(container, view, list, false); return view; } |