diff options
author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-11-21 12:43:11 +0000 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-11-21 12:54:23 +0000 |
commit | 6ef90d3ebd47aba87ea5cadbef275fd08edd0b81 (patch) | |
tree | 7e47bba2eef709c799bd43d044330dcf8ea47595 /res/xml | |
parent | 28413bb813a4b621f6575b85ef04ce7636490f92 (diff) | |
download | packages_apps_settings-6ef90d3ebd47aba87ea5cadbef275fd08edd0b81.zip packages_apps_settings-6ef90d3ebd47aba87ea5cadbef275fd08edd0b81.tar.gz packages_apps_settings-6ef90d3ebd47aba87ea5cadbef275fd08edd0b81.tar.bz2 |
Add System menu and PowerWidget configuration support from mr0/10.0
Change-Id: I4c34812be0bc39dbe93e21a29682717ccf9c077f
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/power_widget.xml | 68 | ||||
-rw-r--r-- | res/xml/power_widget_settings.xml | 72 | ||||
-rw-r--r-- | res/xml/settings_headers.xml | 6 | ||||
-rw-r--r-- | res/xml/system_settings.xml | 27 |
4 files changed, 173 insertions, 0 deletions
diff --git a/res/xml/power_widget.xml b/res/xml/power_widget.xml new file mode 100644 index 0000000..b900e85 --- /dev/null +++ b/res/xml/power_widget.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2012 The CyanogenMod 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"> + + <PreferenceCategory + android:key="pref_buttons" + android:title="@string/title_buttons" /> + + <PreferenceCategory + android:key="pref_buttons_modes" + android:title="@string/title_button_modes"> + + <MultiSelectListPreference + android:key="pref_brightness_mode" + android:dialogTitle="@string/pref_brightness_mode_title" + android:title="@string/pref_brightness_mode_title" + android:summary="@string/pref_brightness_mode_summary" + android:entries="@array/entries_brightness_widget" + android:entryValues="@array/values_brightness_widget" + android:persistent="false" /> + + <ListPreference + android:key="pref_network_mode" + android:dialogTitle="@string/pref_network_mode_title" + android:title="@string/pref_network_mode_title" + android:entries="@array/entries_network_widget" + android:entryValues="@array/values_network_widget" /> + + <ListPreference + android:key="pref_screentimeout_mode" + android:dialogTitle="@string/pref_screentimeout_mode_title" + android:title="@string/pref_screentimeout_mode_title" + android:entries="@array/entries_screentimeout_widget" + android:entryValues="@array/values_screentimeout_widget" /> + + <MultiSelectListPreference + android:key="pref_ring_mode" + android:dialogTitle="@string/pref_ring_mode_title" + android:title="@string/pref_ring_mode_title" + android:summary="@string/pref_ring_mode_summary" + android:entries="@array/entries_ring_widget" + android:entryValues="@array/values_ring_widget" + android:persistent="false" /> + + <ListPreference + android:key="pref_flash_mode" + android:dialogTitle="@string/pref_flash_mode_title" + android:title="@string/pref_flash_mode_title" + android:entries="@array/entries_flash_widget" + android:entryValues="@array/values_flash_widget" /> + </PreferenceCategory> + +</PreferenceScreen> diff --git a/res/xml/power_widget_settings.xml b/res/xml/power_widget_settings.xml new file mode 100644 index 0000000..2a068c7 --- /dev/null +++ b/res/xml/power_widget_settings.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The CyanogenMod 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"> + + <!-- Notification drawer Power Widget --> + <PreferenceCategory + android:title="@string/power_widget_title"> + + <CheckBoxPreference + android:key="expanded_widget" + android:title="@string/title_expanded_widget" + android:defaultValue="true" /> + + <PreferenceScreen + android:key="widget_picker" + android:title="@string/title_widget_picker" + android:summary="@string/summary_widget_picker" + android:dependency="expanded_widget" + android:fragment="com.android.settings.cyanogenmod.PowerWidget$PowerWidgetChooser"> + </PreferenceScreen> + + <PreferenceScreen + android:key="widget_order" + android:title="@string/title_widget_order" + android:summary="@string/summary_widget_order" + android:dependency="expanded_widget" + android:fragment="com.android.settings.cyanogenmod.PowerWidget$PowerWidgetOrder"> + </PreferenceScreen> + + </PreferenceCategory> + + <PreferenceCategory + android:title="@string/power_widget_behavior"> + + <CheckBoxPreference + android:key="expanded_hide_onchange" + android:title="@string/title_expanded_hide_onchange" + android:defaultValue="false" + android:dependency="expanded_widget" /> + + <CheckBoxPreference + android:key="expanded_hide_scrollbar" + android:title="@string/title_expanded_hide_scrollbar" + android:defaultValue="false" + android:dependency="expanded_widget" /> + + <ListPreference + android:key="expanded_haptic_feedback" + android:dialogTitle="@string/expanded_haptic_feedback_title" + android:title="@string/expanded_haptic_feedback_title" + android:entries="@array/haptic_feedback_entries" + android:entryValues="@array/haptic_feedback_values" + android:dependency="expanded_widget" /> + + </PreferenceCategory> + +</PreferenceScreen>
\ No newline at end of file diff --git a/res/xml/settings_headers.xml b/res/xml/settings_headers.xml index f25014d..57f363f 100644 --- a/res/xml/settings_headers.xml +++ b/res/xml/settings_headers.xml @@ -78,6 +78,12 @@ android:targetClass="com.tmobile.themechooser.ThemeChooser" /> </header> + <!-- System --> + <header + android:id="@+id/system_settings" + android:icon="@drawable/ic_settings_system" + android:fragment="com.android.settings.cyanogenmod.SystemSettings" + android:title="@string/system_settings_title" /> <!-- DEVICE --> <header android:id="@+id/device_section" diff --git a/res/xml/system_settings.xml b/res/xml/system_settings.xml new file mode 100644 index 0000000..6b42c1f --- /dev/null +++ b/res/xml/system_settings.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The CyanogenMod 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/system_interface_title" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> + + <PreferenceScreen + android:key="notification_drawer" + android:fragment="com.android.settings.cyanogenmod.PowerWidget" + android:title="@string/notification_drawer_title" /> + +</PreferenceScreen> |