blob: 20fac4547fa93a264e0ce993c2c1144bf37d3196 [file] [log] [blame]
The Android Open Source Projectafc4ab22009-03-03 19:32:34 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
Amith Yamasani1bb6db52010-09-17 13:34:47 -07007
The Android Open Source Projectafc4ab22009-03-03 19:32:34 -08008 http://www.apache.org/licenses/LICENSE-2.0
Amith Yamasani1bb6db52010-09-17 13:34:47 -07009
The Android Open Source Projectafc4ab22009-03-03 19:32:34 -080010 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
Fan Zhang4e7bd692017-07-14 13:29:50 -070017<PreferenceScreen
18 xmlns:android="http://schemas.android.com/apk/res/android"
Fan Zhang74c61d12017-11-17 16:49:54 -080019 xmlns:settings="http://schemas.android.com/apk/res-auto"
Fan Zhang4e7bd692017-07-14 13:29:50 -070020 android:title="@string/date_and_time"
21 settings:keywords="@string/keywords_date_and_time">
Fabrice Di Meglioe6b336d2014-07-10 14:59:46 -070022
Edgar Wang444b6462019-12-26 17:43:13 +080023 <com.android.settingslib.RestrictedSwitchPreference
24 android:key="auto_time"
25 android:title="@string/date_time_auto"
26 settings:useAdditionalSummary="true"
27 settings:userRestriction="no_config_date_time"/>
Fabrice Di Meglioe6b336d2014-07-10 14:59:46 -070028
Edgar Wang444b6462019-12-26 17:43:13 +080029 <com.android.settingslib.RestrictedPreference
30 android:key="date"
31 android:title="@string/date_time_set_date_title"
32 android:summary="@string/summary_placeholder"
33 settings:userRestriction="no_config_date_time"/>
Fabrice Di Meglioe6b336d2014-07-10 14:59:46 -070034
Edgar Wang444b6462019-12-26 17:43:13 +080035 <com.android.settingslib.RestrictedPreference
36 android:key="time"
37 android:title="@string/date_time_set_time_title"
38 android:summary="@string/summary_placeholder"
39 settings:userRestriction="no_config_date_time"/>
Fabrice Di Meglioe6b336d2014-07-10 14:59:46 -070040
Edgar Wang444b6462019-12-26 17:43:13 +080041 <com.android.settingslib.RestrictedSwitchPreference
42 android:key="auto_zone"
43 android:title="@string/zone_auto_title"
44 settings:allowDividerAbove="true"
45 settings:userRestriction="no_config_date_time"/>
Fabrice Di Meglioe6b336d2014-07-10 14:59:46 -070046
Edgar Wang444b6462019-12-26 17:43:13 +080047 <com.android.settingslib.RestrictedPreference
48 android:key="timezone"
49 android:title="@string/date_time_set_timezone_title"
50 android:summary="@string/summary_placeholder"
51 android:fragment="com.android.settings.datetime.timezone.TimeZoneSettings"
52 settings:userRestriction="no_config_date_time"
53 settings:keywords="@string/keywords_time_zone"/>
Fabrice Di Meglioe6b336d2014-07-10 14:59:46 -070054
Joachim Sauer95beae02017-06-01 11:23:28 +010055 <PreferenceCategory
anitalina08e2722018-03-21 09:34:17 +080056 android:key="time_format_preference_category"
Fan Zhangbb679d42019-03-25 15:12:12 -070057 android:title="@string/time_format_category_title"
58 settings:keywords="@string/keywords_time_format">
Joachim Sauer95beae02017-06-01 11:23:28 +010059 <SwitchPreference
60 android:key="auto_24hour"
Fan Zhang7743e122019-02-08 11:16:05 -080061 android:title="@string/date_time_24hour_auto"/>
Joachim Sauer95beae02017-06-01 11:23:28 +010062
63 <SwitchPreference
64 android:key="24 hour"
65 android:title="@string/date_time_24hour" />
66 </PreferenceCategory>
Fabrice Di Meglioe6b336d2014-07-10 14:59:46 -070067
The Android Open Source Projectafc4ab22009-03-03 19:32:34 -080068</PreferenceScreen>