diff options
author | Jason Monk <jmonk@google.com> | 2015-03-26 11:05:38 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-03-27 10:43:05 -0400 |
commit | 46c55104384a9138d51c18c24114885af842afde (patch) | |
tree | 24ad4d4dd7a9dfe989947893dbbcf71c8483138c /res/values | |
parent | 024f373dc0a90cbd4b513a1cf1dcf8a6c248dc49 (diff) | |
download | android_packages_apps_PackageInstaller-46c55104384a9138d51c18c24114885af842afde.tar.gz android_packages_apps_PackageInstaller-46c55104384a9138d51c18c24114885af842afde.tar.bz2 android_packages_apps_PackageInstaller-46c55104384a9138d51c18c24114885af842afde.zip |
Update permissions UI
- Update existing settings page to show action bar and app header.
- Add page to manage apps based on permission.
Change-Id: I2211044fbe4db4b4fbf981f1a7ad7a01666cd69d
Diffstat (limited to 'res/values')
-rwxr-xr-x | res/values/colors.xml | 1 | ||||
-rw-r--r-- | res/values/dimens.xml | 25 | ||||
-rw-r--r-- | res/values/strings.xml | 3 | ||||
-rwxr-xr-x | res/values/styles.xml | 3 |
4 files changed, 32 insertions, 0 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml index 6a18b2eb..5d92d6fc 100755 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -17,5 +17,6 @@ <resources> <color name="shadow">#cc222222</color> <color name="transparent">#00000000</color> + <color name="header_background_color">#ff37474f</color> </resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml new file mode 100644 index 00000000..028def55 --- /dev/null +++ b/res/values/dimens.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources> + <!-- Header sub settings margin start / end --> + <dimen name="header_subsettings_margin_start">72dp</dimen> + <dimen name="header_subsettings_margin_end">16dp</dimen> + + <!-- Header margin start / end --> + <dimen name="header_margin_start">16dp</dimen> + <dimen name="header_margin_end">16dp</dimen> +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index e807392f..a8254f49 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -197,4 +197,7 @@ <string name="permdesc_togglePermissions" translatable="false">Allows the holder to launch the UI for toggling app permissions. Should never be needed for normal apps.</string> + <!-- Title for page of managing application permissions --> + <string name="app_permissions">App permissions</string> + </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index b5d8d480..c67f043a 100755 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -23,4 +23,7 @@ <style name="Theme.AlertDialogActivity" parent="@android:style/Theme.DeviceDefault.Light.Panel"> <item name="android:backgroundDimEnabled">true</item> </style> + + <style name="Theme.Header.Settings" parent="@android:style/Theme.Material.Settings"> + </style> </resources> |