Steve Kondik | 04518a5 | 2016-09-26 02:48:04 -0700 | [diff] [blame] | 1 | <?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 Liew | b62ecf7 | 2016-10-17 09:31:31 +0800 | [diff] [blame] | 17 | <PreferenceScreen |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | xmlns:cm="http://schemas.android.com/apk/res/cyanogenmod.platform" |
Steve Kondik | 165ebdf | 2016-10-07 00:17:49 -0700 | [diff] [blame] | 20 | android:key="rotation" |
Steve Kondik | 04518a5 | 2016-09-26 02:48:04 -0700 | [diff] [blame] | 21 | android:title="@string/display_rotation_title"> |
| 22 | |
| 23 | <SwitchPreference |
| 24 | android:key="accelerometer" |
| 25 | android:title="@string/accelerometer_title" /> |
Zhao Wei Liew | b62ecf7 | 2016-10-17 09:31:31 +0800 | [diff] [blame] | 26 | |
Steve Kondik | 04518a5 | 2016-09-26 02:48:04 -0700 | [diff] [blame] | 27 | <cyanogenmod.preference.CMSystemSettingSwitchPreference |
| 28 | android:key="lockscreen_rotation" |
| 29 | android:title="@string/display_lockscreen_rotation_title" |
| 30 | android:dependency="accelerometer" |
Zhao Wei Liew | b62ecf7 | 2016-10-17 09:31:31 +0800 | [diff] [blame] | 31 | android:defaultValue="false" |
| 32 | cm:requiresConfig="@*android:bool/config_enableLockScreenRotation" /> |
| 33 | |
Steve Kondik | 04518a5 | 2016-09-26 02:48:04 -0700 | [diff] [blame] | 34 | <PreferenceCategory |
| 35 | android:key="display_rotation_category" |
Zhao Wei Liew | b62ecf7 | 2016-10-17 09:31:31 +0800 | [diff] [blame] | 36 | 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 Kondik | 04518a5 | 2016-09-26 02:48:04 -0700 | [diff] [blame] | 56 | |
| 57 | </PreferenceScreen> |