maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2010 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 |
| 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 | |
| 17 | <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" |
maxwen | 0c7e4e2 | 2018-03-09 18:36:45 +0100 | [diff] [blame] | 18 | xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" |
| 19 | android:key="rotation_settings" |
| 20 | android:title="@string/display_rotation_title" > |
maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 21 | |
| 22 | <SwitchPreference |
| 23 | android:key="accelerometer" |
| 24 | android:title="@string/accelerometer_title" |
| 25 | android:persistent="false" /> |
| 26 | |
maxwen | af27e08 | 2017-12-05 13:27:30 +0100 | [diff] [blame] | 27 | <SwitchPreference |
maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 28 | android:key="lockscreen_rotation" |
| 29 | android:title="@string/display_lockscreen_rotation_title" |
| 30 | android:dependency="accelerometer" |
| 31 | android:persistent="false" /> |
| 32 | |
| 33 | <PreferenceCategory |
| 34 | android:key="display_rotation_category" |
| 35 | android:title="@string/display_rotation_category_title" /> |
| 36 | |
maxwen | af27e08 | 2017-12-05 13:27:30 +0100 | [diff] [blame] | 37 | <SwitchPreference |
maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 38 | android:key="display_rotation_0" |
| 39 | android:title="@string/display_rotation_0_title" |
maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 40 | android:dependency="accelerometer" |
| 41 | android:persistent="false" /> |
| 42 | |
maxwen | af27e08 | 2017-12-05 13:27:30 +0100 | [diff] [blame] | 43 | <SwitchPreference |
maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 44 | android:key="display_rotation_90" |
| 45 | android:title="@string/display_rotation_90_title" |
maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 46 | android:dependency="accelerometer" |
| 47 | android:persistent="false" /> |
| 48 | |
maxwen | af27e08 | 2017-12-05 13:27:30 +0100 | [diff] [blame] | 49 | <SwitchPreference |
maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 50 | android:key="display_rotation_180" |
| 51 | android:title="@string/display_rotation_180_title" |
maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 52 | android:dependency="accelerometer" |
| 53 | android:persistent="false" /> |
| 54 | |
maxwen | af27e08 | 2017-12-05 13:27:30 +0100 | [diff] [blame] | 55 | <SwitchPreference |
maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 56 | android:key="display_rotation_270" |
| 57 | android:title="@string/display_rotation_270_title" |
maxwen | 333a188 | 2017-09-16 23:50:56 +0200 | [diff] [blame] | 58 | android:dependency="accelerometer" |
| 59 | android:persistent="false" /> |
| 60 | |
| 61 | </PreferenceScreen> |