diff options
author | Jason Monk <jmonk@google.com> | 2015-06-22 12:15:38 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-07-08 11:19:18 -0400 |
commit | f6a05cd23ea6db4e6c546290ba1f91a300a73400 (patch) | |
tree | 06f241c9bef908c83d10cd37b024c4ab5e2fb318 /res | |
parent | 9ef638e53f9ae1c8f059a17d3cef27d89187b454 (diff) | |
download | android_packages_apps_PackageInstaller-f6a05cd23ea6db4e6c546290ba1f91a300a73400.tar.gz android_packages_apps_PackageInstaller-f6a05cd23ea6db4e6c546290ba1f91a300a73400.tar.bz2 android_packages_apps_PackageInstaller-f6a05cd23ea6db4e6c546290ba1f91a300a73400.zip |
Add all permissions screen
Bug: 21268041
Change-Id: I51674ffbd252bf4585a992f8cc9e43973ce43512
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/preference_category_material.xml | 35 | ||||
-rw-r--r-- | res/values/strings.xml | 5 | ||||
-rwxr-xr-x | res/values/styles.xml | 5 | ||||
-rw-r--r-- | res/xml/all_permissions.xml | 24 |
4 files changed, 69 insertions, 0 deletions
diff --git a/res/layout/preference_category_material.xml b/res/layout/preference_category_material.xml new file mode 100644 index 00000000..c60fd12b --- /dev/null +++ b/res/layout/preference_category_material.xml @@ -0,0 +1,35 @@ +<?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. +--> + +<!-- Based on frameworks/base/core/res/res/layout/preference_category_material.xml + but has a ViewGroup at the root to make the support lib happy.--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+android:id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="16dip" + android:textAppearance="@android:style/TextAppearance.Material.Body2" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:textColor="?android:attr/colorAccent" + android:paddingTop="16dip" /> + +</LinearLayout> diff --git a/res/values/strings.xml b/res/values/strings.xml index 2e23df01..cbe193e2 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -256,4 +256,9 @@ <!-- Text displayed until loading is done --> <string name="loading">Loading\u2026</string> + <!-- [CHAR LIMIT=45] Title of all permissions settings --> + <string name="all_permissions">All permissions</string> + <!-- [CHAR LIMIT=45] Group of permissions granted to app automatically when installed. --> + <string name="other_permissions">Other app capabilities</string> + </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index e800b56f..6d772910 100755 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -29,6 +29,7 @@ <style name="PreferenceThemeOverlay.v14.Permissions"> <item name="preferenceStyle">@style/Preference.Permissions</item> + <item name="preferenceCategoryStyle">@style/Preference.Category.Permissions</item> <item name="switchPreferenceStyle">@style/Preference.SwitchPreference.Permissions</item> </style> @@ -36,6 +37,10 @@ <item name="layout">@layout/preference_permissions</item> </style> + <style name="Preference.Category.Permissions"> + <item name="layout">@layout/preference_category_material</item> + </style> + <style name="Preference.SwitchPreference.Permissions"> <item name="layout">@layout/preference_permissions_switch</item> </style> diff --git a/res/xml/all_permissions.xml b/res/xml/all_permissions.xml new file mode 100644 index 00000000..06e929fe --- /dev/null +++ b/res/xml/all_permissions.xml @@ -0,0 +1,24 @@ +<?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. +--> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + android:title="@string/all_permissions"> + + <PreferenceCategory + android:key="other_perms" + android:title="@string/other_permissions" /> + +</PreferenceScreen> |