From d87f81e901842f1cfc589fadcf7a88d1e452f1c9 Mon Sep 17 00:00:00 2001 From: Andy Stadler Date: Tue, 23 Nov 2010 22:54:49 -0800 Subject: [PATCH] Update visual style shortcut picker and make it async * Use dialog when in XL screen size * Show different strings in launcher and in dialog/activity title * Add cancel button to picker * Move accounts query to AsyncTask * Remove obsolete AccountsAdapter Bug: 3093928 Change-Id: Ief771482c6db684c434c21cf92844c37a927d34a --- AndroidManifest.xml | 7 +- res/layout/account_shortcut_picker.xml | 37 ++++++ res/layout/account_shortcut_picker_item.xml | 39 ++++++ res/layout/accounts.xml | 56 --------- res/layout/accounts_item.xml | 59 --------- res/values/strings.xml | 7 ++ .../email/activity/AccountShortcutPicker.java | 114 ++++++++++-------- 7 files changed, 154 insertions(+), 165 deletions(-) create mode 100644 res/layout/account_shortcut_picker.xml create mode 100644 res/layout/account_shortcut_picker_item.xml delete mode 100644 res/layout/accounts.xml delete mode 100644 res/layout/accounts_item.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 97ac3d716..4a99cb899 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -147,10 +147,13 @@ - + diff --git a/res/layout/account_shortcut_picker.xml b/res/layout/account_shortcut_picker.xml new file mode 100644 index 000000000..459f28259 --- /dev/null +++ b/res/layout/account_shortcut_picker.xml @@ -0,0 +1,37 @@ + + + + + + +