blob: e470604f55a5de6afdf6d4ea5bc7ec2205f9db31 [file] [log] [blame]
Steve Kondik04518a52016-09-26 02:48:04 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 The CyanogenMod 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
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 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
Zhao Wei Liewb62ecf72016-10-17 09:31:31 +080017<PreferenceScreen
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:cm="http://schemas.android.com/apk/res/cyanogenmod.platform"
Steve Kondik165ebdf2016-10-07 00:17:49 -070020 android:key="rotation"
Steve Kondik04518a52016-09-26 02:48:04 -070021 android:title="@string/display_rotation_title">
22
23 <SwitchPreference
24 android:key="accelerometer"
25 android:title="@string/accelerometer_title" />
Zhao Wei Liewb62ecf72016-10-17 09:31:31 +080026
Steve Kondik04518a52016-09-26 02:48:04 -070027 <cyanogenmod.preference.CMSystemSettingSwitchPreference
28 android:key="lockscreen_rotation"
29 android:title="@string/display_lockscreen_rotation_title"
30 android:dependency="accelerometer"
Zhao Wei Liewb62ecf72016-10-17 09:31:31 +080031 android:defaultValue="false"
32 cm:requiresConfig="@*android:bool/config_enableLockScreenRotation" />
33
Steve Kondik04518a52016-09-26 02:48:04 -070034 <PreferenceCategory
35 android:key="display_rotation_category"
Zhao Wei Liewb62ecf72016-10-17 09:31:31 +080036 android:title="@string/display_rotation_category_title"
37 android:dependency="accelerometer">
38
39 <CheckBoxPreference
40 android:key="display_rotation_0"
41 android:title="@string/display_rotation_0_title" />
42
43 <CheckBoxPreference
44 android:key="display_rotation_90"
45 android:title="@string/display_rotation_90_title" />
46
47 <CheckBoxPreference
48 android:key="display_rotation_180"
49 android:title="@string/display_rotation_180_title" />
50
51 <CheckBoxPreference
52 android:key="display_rotation_270"
53 android:title="@string/display_rotation_270_title" />
54
55 </PreferenceCategory>
Steve Kondik04518a52016-09-26 02:48:04 -070056
57</PreferenceScreen>