summaryrefslogtreecommitdiffstats
path: root/res/xml/display_rotation.xml
diff options
context:
space:
mode:
authorDvTonder <david.vantonder@gmail.com>2012-11-25 09:27:13 -0500
committerDvTonder <david.vantonder@gmail.com>2012-11-25 09:30:01 -0500
commit085edd448c091b2ee98f7ff5a87ad2e6c4c550db (patch)
treed897c499ddc0e1621752efeb1bdcf8c2b58f5f3a /res/xml/display_rotation.xml
parent2f0ded7678df235b850339cefff1bb10021690c7 (diff)
downloadpackages_apps_Settings-085edd448c091b2ee98f7ff5a87ad2e6c4c550db.zip
packages_apps_Settings-085edd448c091b2ee98f7ff5a87ad2e6c4c550db.tar.gz
packages_apps_Settings-085edd448c091b2ee98f7ff5a87ad2e6c4c550db.tar.bz2
Setings: Forward port Display Rotation settings
Originaly authored by Robert Burns (burnsra) Change-Id: I4f96b3f804ee4732b277c35340790f3561d69764
Diffstat (limited to 'res/xml/display_rotation.xml')
-rw-r--r--res/xml/display_rotation.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/res/xml/display_rotation.xml b/res/xml/display_rotation.xml
new file mode 100644
index 0000000..fa6b3fe
--- /dev/null
+++ b/res/xml/display_rotation.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ android:title="@string/display_rotation_title"
+ xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
+
+ <CheckBoxPreference
+ android:key="accelerometer"
+ android:title="@string/accelerometer_title" />
+ <PreferenceCategory
+ android:key="display_rotation_category"
+ android:title="@string/display_rotation_category_title" />
+ <CheckBoxPreference
+ android:key="display_rotation_0"
+ android:title="@string/display_rotation_0_title"
+ android:layout="?android:attr/preferenceLayoutChild"
+ android:dependency="accelerometer" />
+ <CheckBoxPreference
+ android:key="display_rotation_90"
+ android:title="@string/display_rotation_90_title"
+ android:layout="?android:attr/preferenceLayoutChild"
+ android:dependency="accelerometer" />
+ <CheckBoxPreference
+ android:key="display_rotation_180"
+ android:title="@string/display_rotation_180_title"
+ android:layout="?android:attr/preferenceLayoutChild"
+ android:dependency="accelerometer" />
+ <CheckBoxPreference
+ android:key="display_rotation_270"
+ android:title="@string/display_rotation_270_title"
+ android:layout="?android:attr/preferenceLayoutChild"
+ android:dependency="accelerometer" />
+
+</PreferenceScreen>