From fd06d2fcf4a4ea467a7f0f3b3e783fc6d1f2605e Mon Sep 17 00:00:00 2001 From: Doris Ling Date: Thu, 29 Dec 2016 14:41:15 -0800 Subject: [PATCH] Add header and remove button to account detail page. - Add account header which contains the account icon and name to the top of the account detail page. - Also add the remove account button to the bottom of the page. Change-Id: I24f1a17a7f9c4dd8c840a2b0329c0965e4e612e9 Fix: 33543525 Test: make RunSettingsRoboTests --- res/layout/account_header.xml | 53 +++++ res/layout/app_details.xml | 4 +- res/layout/remove_account_button.xml | 32 +++ res/values/styles.xml | 4 +- res/xml/account_type_settings.xml | 11 + .../AccountDetailDashboardFragment.java | 30 ++- .../accounts/AccountPreferenceController.java | 2 + .../RemoveAccountPreferenceController.java | 199 ++++++++++++++++++ .../AccountDetailDashboardFragmentTest.java | 56 ++++- ...RemoveAccountPreferenceControllerTest.java | 137 ++++++++++++ 10 files changed, 517 insertions(+), 11 deletions(-) create mode 100755 res/layout/account_header.xml create mode 100644 res/layout/remove_account_button.xml create mode 100644 src/com/android/settings/accounts/RemoveAccountPreferenceController.java create mode 100644 tests/robotests/src/com/android/settings/accounts/RemoveAccountPreferenceControllerTest.java diff --git a/res/layout/account_header.xml b/res/layout/account_header.xml new file mode 100755 index 00000000000..7cae95e21f3 --- /dev/null +++ b/res/layout/account_header.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + diff --git a/res/layout/app_details.xml b/res/layout/app_details.xml index 4e654fd5047..7994a4c009b 100644 --- a/res/layout/app_details.xml +++ b/res/layout/app_details.xml @@ -18,7 +18,7 @@ + + + +