diff options
Diffstat (limited to 'res/values')
-rwxr-xr-x | res/values/colors.xml | 21 | ||||
-rw-r--r-- | res/values/dimens.xml | 40 | ||||
-rw-r--r-- | res/values/strings.xml | 110 | ||||
-rwxr-xr-x | res/values/styles.xml | 20 | ||||
-rw-r--r-- | res/values/themes.xml | 28 |
5 files changed, 192 insertions, 27 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml deleted file mode 100755 index 6a18b2eb..00000000 --- a/res/values/colors.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 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> - <color name="shadow">#cc222222</color> - <color name="transparent">#00000000</color> -</resources> - diff --git a/res/values/dimens.xml b/res/values/dimens.xml new file mode 100644 index 00000000..05845021 --- /dev/null +++ b/res/values/dimens.xml @@ -0,0 +1,40 @@ +<?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> + + <dimen name="lb_action_section_width">384dp</dimen> + + <dimen name="lb_content_section_width">576dp</dimen> + <dimen name="lb_content_fragment_start_padding">48dp</dimen> + <dimen name="lb_content_fragment_delimiter_padding">16dp</dimen> + <dimen name="lb_content_fragment_max_icon_height">280dp</dimen> + <dimen name="lb_content_fragment_title_text_top_padding">2dp</dimen> + <dimen name="lb_content_fragment_title_text_size">36sp</dimen> + <dimen name="lb_content_fragment_icon_width">140dp</dimen> + + <dimen name="lb_content_fragment_breadcrumb_text_size">18sp</dimen> + <dimen name="lb_content_fragment_description_text_size">14sp</dimen> + <dimen name="lb_content_fragment_title_text_bottom_padding">4dp</dimen> + +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 27d68ddf..d79ba63d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -133,10 +133,14 @@ is a current device administrator [CHAR LIMIT=80] --> <string name="uninstall_failed_device_policy_manager">Can\'t uninstall because this package is an active device administrator.</string> + <!-- String presented to the user when uninstalling a package failed because the target package + is a current device administrator for some user [CHAR LIMIT=100] --> + <string name="uninstall_failed_device_policy_manager_of_user">Can\'t uninstall because this package is an + active device administrator for the user <xliff:g id="username">%1$s</xliff:g>.</string> <!-- String presented to the user when uninstalling a package failed because a profile owner has marked the the target package as not able to be uninstalled [CHAR LIMIT=80] --> <string name="uninstall_blocked_profile_owner">This app is needed for - your <xliff:g id="username">%1$s</xliff:g> profile and can\'t be uninstalled.</string> + your work profile and can\'t be uninstalled.</string> <!-- String presented to the user when uninstalling a package failed because a device owner has marked the the target package as not able to be uninstalled [CHAR LIMIT=80] --> <string name="uninstall_blocked_device_owner">This app is required @@ -166,4 +170,108 @@ <string name="grant_confirm_question">Do you want to grant the following permissions? It will get access to:</string> + + <!-- Title for the dialog button to allow a permission grant. --> + <string name="grant_dialog_button_allow">Allow</string> + + <!-- Title for the dialog button to deny a permission grant. --> + <string name="grant_dialog_button_deny">Deny</string> + + <!-- Template for the current permission from the total number of permissions. --> + <string name="current_permission_template"> + <xliff:g id="current_permission_index" example="1">%1$s</xliff:g> of + <xliff:g id="permission_count" example="2">%2$s</xliff:g></string> + + <!-- Template for the warning message when an app requests a permission. --> + <string name="permission_warning_template">Allow + <xliff:g id="app_name" example="Gmail">%1$s</xliff:g> to + <xliff:g id="action" example="do something">%2$s</xliff:g>?</string> + + <!-- Permissions --> + + <!-- Title of an application permission, listed so the user can choose whether they want + to allow the application to do this. --> + <string name="permlab_togglePermissions" translatable="false">toggle permissions</string> + <!-- Description of an application permission, listed so the user can choose whether + they want to allow the application to do this. --> + <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> + + <!-- Breadcrumb for page of managing application permissions [CHAR LIMIT=50] --> + <string name="app_permissions_breadcrumb">Apps</string> + + <!-- Title for page of managing application permissions --> + <string name="app_permissions">App permissions</string> + <!-- Checkbox that allows user to not be questioned about this permission + request again --> + <string name="never_ask_again">Never ask again</string> + + <!-- Label when app requests no permissions --> + <string name="no_permissions">No permissions</string> + + <!-- Label for button that leads to more permissions [CHAR LIMIT=40] --> + <string name="additional_permissions">Additional permissions</string> + + <!-- Description of how many more permissions to view on next page [CHAR LIMIT=30] --> + <plurals name="additional_permissions_more"> + <item quantity="one"><xliff:g id="count" example="1">%1$d</xliff:g> more</item> + <item quantity="other"><xliff:g id="count" example="2">%1$d</xliff:g> more</item> + </plurals> + + <!-- Warning for turning off permissions on older apps --> + <string name="old_sdk_deny_warning">This app was designed for an older version of Android. Denying permission may cause it to no longer function as intended.</string> + + <!-- The default description of a permission, i.e. what it does. [CHAR LIMIT=40] --> + <string name="default_permission_description">perform an unknown action</string> + + <!-- Summary of number of apps currently granted a single permission [CHAR LIMIT=45] --> + <string name="app_permissions_group_summary"><xliff:g id="count" example="10">%1$d</xliff:g> of <xliff:g id="count" example="10">%2$d</xliff:g> apps allowed</string> + + <!-- [CHAR LIMIT=NONE] Menu for manage permissions to control whether system apps are shown --> + <string name="menu_show_system">Show system</string> + <!-- [CHAR LIMIT=NONE] Menu for manage permissions to control whether system apps are hidden --> + <string name="menu_hide_system">Hide system</string> + + <!-- [CHAR LIMIT=30] Title for page managing what apps have a permission granted --> + <string name="permission_title"><xliff:g id="permission" example="Camera">%1$s</xliff:g> permissions</string> + + <!-- [CHAR LIMIT=NONE] Label when no apps requesting this permission --> + <string name="no_apps">No apps</string> + + <!-- [CHAR LIMIT=30] Title of button that leads to location settings --> + <string name="location_settings">Location Settings</string> + + <!-- [CHAR LIMIT=NONE] Warning about how this app cannot have location permission disabled --> + <string name="location_warning"><xliff:g id="app_name" example="Package Installer">%1$s</xliff:g> is a provider of location services for this device. Location access can be modified from location settings.</string> + + <!-- [CHAR LIMIT=NONE] Warning message when turning off permission for system apps --> + <string name="system_warning">If you deny this permission, basic features of your device may no longer function as intended.</string> + + <!-- [CHAR LIMIT=NONE] Summary of a permission switch when it's enforced by policy --> + <string name="permission_summary_enforced_by_policy">Enforced by policy</string> + + <!-- 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> + + <!-- Title of the permission dialog for accessibility purposes- spoken to the user. [CHAR LIMIT=none] --> + <string name="permission_request_title">Permission request</string> + + <!-- Title for the dialog that warns the user they need to turn off screen overlays + before permissions can be changed. [CHAR LIMIT=NONE] --> + <string name="screen_overlay_title">Screen overlay detected</string> + + <!-- Message for the dialog that warns the user they need to turn off screen overlays + before permissions can be changed. The "Settings > Apps" conveys to the user to + go to Settings and click on apps, this may need updates in RTL languages. [CHAR LIMIT=NONE] --> + <string name="screen_overlay_message">To change this permission setting, you first have to turn off the screen overlay from Settings \u003e Apps</string> + + <!-- Button for the dialog that warns the user they need to turn off screen overlays + before permissions can be changed. [CHAR LIMIT=NONE] --> + <string name="screen_overlay_button">Open settings</string> + </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index b5d8d480..7f6a4693 100755 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -15,12 +15,22 @@ --> <resources> - <style name="padded"> - <item name="android:paddingStart">16dip</item> - <item name="android:paddingEnd">16dip</item> + + <style name="Theme.DialogWhenLarge" + parent="@android:style/Theme.DeviceDefault.Light.DialogWhenLarge.NoActionBar"> </style> - <style name="Theme.DialogWhenLarge" parent="@android:style/Theme.DeviceDefault.Light.DialogWhenLarge.NoActionBar"/> - <style name="Theme.AlertDialogActivity" parent="@android:style/Theme.DeviceDefault.Light.Panel"> + + <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.DeviceDefault.Settings"> + </style> + + <style name="ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid"> + <item name="android:contentInsetStart">72dp</item> + </style> + </resources> diff --git a/res/values/themes.xml b/res/values/themes.xml new file mode 100644 index 00000000..026c77fa --- /dev/null +++ b/res/values/themes.xml @@ -0,0 +1,28 @@ +<?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> + + <style name="Settings" + parent="@android:style/Theme.DeviceDefault.Settings"> + </style> + + <style name="GrantPermissions" + parent="@android:style/Theme.DeviceDefault.Light.Dialog.NoActionBar"> + </style> + +</resources> |