Skip to content

Most visited

Recently visited

navigation
AppRestrictionSchema / res / values /

restriction_values.xml

1
<?xml version="1.0" encoding="utf-8"?>
2
<!--
3
Copyright 2014 The Android Open Source Project
4
 
5
Licensed under the Apache License, Version 2.0 (the "License");
6
you may not use this file except in compliance with the License.
7
You may obtain a copy of the License at
8
 
9
 http://www.apache.org/licenses/LICENSE-2.0
10
 
11
Unless required by applicable law or agreed to in writing, software
12
distributed under the License is distributed on an "AS IS" BASIS,
13
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
See the License for the specific language governing permissions and
15
limitations under the License.
16
-->
17
<resources>
18
 
19
    <!-- Bool restriction -->
20
    <string name="title_can_say_hello">Can say hello</string>
21
    <string name="description_can_say_hello">Whether the app can say hello to the user</string>
22
    <bool name="default_can_say_hello">false</bool>
23
 
24
    <!-- String restriction -->
25
    <string name="title_message">Message</string>
26
    <string name="description_message">A message string to show</string>
27
    <string name="default_message">Hello!</string>
28
 
29
    <!-- Integer restriction -->
30
    <string name="title_number">Number</string>
31
    <string name="description_number">Sample integer value</string>
32
    <integer name="default_number">32582657</integer>
33
 
34
    <!-- Choice restriction -->
35
    <string name="title_rank">Rank</string>
36
    <string name="description_rank">Rank of the user</string>
37
    <string name="entry_rank_apprentice">Apprentice</string>
38
    <string name="entry_rank_intermediate">Intermediate</string>
39
    <string name="entry_rank_master">Master</string>
40
    <string-array name="entries_rank">
41
        <item>@string/entry_rank_apprentice</item>
42
        <item>@string/entry_rank_intermediate</item>
43
        <item>@string/entry_rank_master</item>
44
    </string-array>
45
    <string-array name="entry_values_rank">
46
        <item>apprentice</item>
47
        <item>intermediate</item>
48
        <item>master</item>
49
    </string-array>
50
    <string name="default_rank">apprentice</string>
51
 
52
    <!-- Multi-select restriction -->
53
    <string name="title_approvals">Approvals</string>
54
    <string name="description_approvals">Approvals</string>
55
    <string name="entry_approvals_read">Read</string>
56
    <string name="entry_approvals_write">Write</string>
57
    <string name="entry_approvals_execute">Execute</string>
58
    <string-array name="entries_approvals">
59
        <item>@string/entry_approvals_read</item>
60
        <item>@string/entry_approvals_write</item>
61
        <item>@string/entry_approvals_execute</item>
62
    </string-array>
63
    <string-array name="entry_values_approvals">
64
        <item>read</item>
65
        <item>write</item>
66
        <item>execute</item>
67
    </string-array>
68
    <string-array name="default_approvals">
69
        <!-- Empty -->
70
    </string-array>
71
 
72
    <!-- Hidden restriction -->
73
    <string name="title_secret_code">Secret code</string>
74
    <string name="description_secret_code">This restriction is hidden and will not be shown to the administrator.</string>
75
    <string name="default_secret_code">(Hidden restriction must have some default value)</string>
76
 
77
    <!-- Bundle restriction -->
78
    <string name="description_profile">Sample profile</string>
79
    <string name="title_profile">Profile</string>
80
 
81
    <string name="default_profile_name">John</string>
82
    <string name="description_profile_name">The name of this person</string>
83
    <string name="title_profile_name">Name</string>
84
 
85
    <integer name="default_profile_age">25</integer>
86
    <string name="description_profile_age">The age of this person</string>
87
    <string name="title_profile_age">Age</string>
88
 
89
    <!-- Bundle array restriction -->
90
    <string name="description_items">Sample items</string>
91
    <string name="title_items">Items</string>
92
    <string name="title_item">Item</string>
93
    <string name="title_key">Key</string>
94
    <string name="title_value">Value</string>
95
 
96
</resources>
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)