From 28429033375c3876af56528bfc9ea6b541052fcb Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Mon, 25 Jan 2010 18:56:17 -0800 Subject: [PATCH] Work on the device admin settings UI. Improve the look of the UI, and add the confirmation screen for enabling an administrator. This uses the new framework APIs to show its description and policies it will control. --- AndroidManifest.xml | 13 +- res/layout/device_admin_add.xml | 105 +++++++++++++ res/layout/device_admin_settings.xml | 72 ++++++--- res/values/strings.xml | 13 +- res/values/styles.xml | 4 + src/com/android/settings/DeviceAdminAdd.java | 146 ++++++++++++++++++ .../android/settings/DeviceAdminSettings.java | 20 ++- 7 files changed, 345 insertions(+), 28 deletions(-) create mode 100644 res/layout/device_admin_add.xml create mode 100644 src/com/android/settings/DeviceAdminAdd.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index f0b2ac48ce2..0b6d011f7c5 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -402,17 +402,28 @@ - + + + + + + + diff --git a/res/layout/device_admin_add.xml b/res/layout/device_admin_add.xml new file mode 100644 index 00000000000..ceb02ae6a70 --- /dev/null +++ b/res/layout/device_admin_add.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + +