Home | History | Annotate | Download | only in 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 <restrictions xmlns:android="http://schemas.android.com/apk/res/android">
     18 
     19     <!--
     20     Refer to the javadoc of RestrictionsManager for detail of this file.
     21     https://developer.android.com/reference/android/content/RestrictionsManager.html
     22     -->
     23 
     24     <restriction
     25         android:defaultValue="@bool/default_can_say_hello"
     26         android:description="@string/description_can_say_hello"
     27         android:key="can_say_hello"
     28         android:restrictionType="bool"
     29         android:title="@string/title_can_say_hello"/>
     30 
     31     <restriction
     32         android:defaultValue="@string/default_message"
     33         android:description="@string/description_message"
     34         android:key="message"
     35         android:restrictionType="string"
     36         android:title="@string/title_message"/>
     37 
     38     <restriction
     39         android:defaultValue="@integer/default_number"
     40         android:description="@string/description_number"
     41         android:key="number"
     42         android:restrictionType="integer"
     43         android:title="@string/title_number"/>
     44 
     45     <restriction
     46         android:defaultValue="@string/default_rank"
     47         android:description="@string/description_rank"
     48         android:entries="@array/entries_rank"
     49         android:entryValues="@array/entry_values_rank"
     50         android:key="rank"
     51         android:restrictionType="choice"
     52         android:title="@string/title_rank"/>
     53 
     54     <restriction
     55         android:defaultValue="@array/default_approvals"
     56         android:description="@string/description_approvals"
     57         android:entries="@array/entries_approvals"
     58         android:entryValues="@array/entry_values_approvals"
     59         android:key="approvals"
     60         android:restrictionType="multi-select"
     61         android:title="@string/title_approvals"/>
     62 
     63     <restriction
     64         android:defaultValue="@string/default_secret_code"
     65         android:description="@string/description_secret_code"
     66         android:key="secret_code"
     67         android:restrictionType="hidden"
     68         android:title="@string/title_secret_code"/>
     69 
     70 </restrictions>
     71