summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2011-06-20 15:00:07 -0700
committerGilles Debunne <debunne@google.com>2011-06-21 11:05:29 -0700
commite78c1879058571c00879f0d3e756951302adf513 (patch)
tree9c5be08683179a2f2c6ee2a97f6c2d49880a5254 /res
parent222a619668df108c93b59087b1ff543bb123f7e0 (diff)
downloadpackages_apps_Settings-e78c1879058571c00879f0d3e756951302adf513.zip
packages_apps_Settings-e78c1879058571c00879f0d3e756951302adf513.tar.gz
packages_apps_Settings-e78c1879058571c00879f0d3e756951302adf513.tar.bz2
Settings refactoring
Wifi and bluetooth pane refactored, main toggles moved to left pane. Change-Id: I42ea4cf3bdf24158f3c67e0dea311258206cd78a
Diffstat (limited to 'res')
-rwxr-xr-xres/drawable-hdpi/ic_settings_bluetooth2.pngbin0 -> 844 bytes
-rwxr-xr-xres/drawable-hdpi/ic_settings_data_usage.pngbin0 -> 844 bytes
-rwxr-xr-xres/drawable-hdpi/ic_settings_more_wireless.pngbin0 -> 844 bytes
-rwxr-xr-xres/drawable-mdpi/ic_settings_bluetooth2.pngbin0 -> 660 bytes
-rwxr-xr-xres/drawable-mdpi/ic_settings_data_usage.pngbin0 -> 660 bytes
-rwxr-xr-xres/drawable-mdpi/ic_settings_more_wireless.pngbin0 -> 660 bytes
-rw-r--r--res/layout/preference_header_switch_item.xml70
-rw-r--r--res/layout/wifi_dialog.xml1
-rwxr-xr-xres/values/dimens.xml1
-rw-r--r--res/values/strings.xml54
-rw-r--r--res/values/styles.xml2
-rw-r--r--res/xml/bluetooth_advanced_settings.xml47
-rw-r--r--res/xml/bluetooth_settings.xml50
-rw-r--r--res/xml/settings_headers.xml115
-rw-r--r--res/xml/wifi_access_points_for_wifi_setup_xl.xml3
-rw-r--r--res/xml/wifi_advanced_settings.xml16
-rw-r--r--res/xml/wifi_settings.xml35
-rw-r--r--res/xml/wireless_settings.xml50
18 files changed, 256 insertions, 188 deletions
diff --git a/res/drawable-hdpi/ic_settings_bluetooth2.png b/res/drawable-hdpi/ic_settings_bluetooth2.png
new file mode 100755
index 0000000..20ceb20
--- /dev/null
+++ b/res/drawable-hdpi/ic_settings_bluetooth2.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_settings_data_usage.png b/res/drawable-hdpi/ic_settings_data_usage.png
new file mode 100755
index 0000000..20ceb20
--- /dev/null
+++ b/res/drawable-hdpi/ic_settings_data_usage.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_settings_more_wireless.png b/res/drawable-hdpi/ic_settings_more_wireless.png
new file mode 100755
index 0000000..20ceb20
--- /dev/null
+++ b/res/drawable-hdpi/ic_settings_more_wireless.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_settings_bluetooth2.png b/res/drawable-mdpi/ic_settings_bluetooth2.png
new file mode 100755
index 0000000..f8acded
--- /dev/null
+++ b/res/drawable-mdpi/ic_settings_bluetooth2.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_settings_data_usage.png b/res/drawable-mdpi/ic_settings_data_usage.png
new file mode 100755
index 0000000..f8acded
--- /dev/null
+++ b/res/drawable-mdpi/ic_settings_data_usage.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_settings_more_wireless.png b/res/drawable-mdpi/ic_settings_more_wireless.png
new file mode 100755
index 0000000..f8acded
--- /dev/null
+++ b/res/drawable-mdpi/ic_settings_more_wireless.png
Binary files differ
diff --git a/res/layout/preference_header_switch_item.xml b/res/layout/preference_header_switch_item.xml
new file mode 100644
index 0000000..654f444
--- /dev/null
+++ b/res/layout/preference_header_switch_item.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2006 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.
+-->
+
+<!-- Layout of a header item in PreferenceActivity. -->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="48dp"
+ android:background="?android:attr/activatedBackgroundIndicator"
+ android:gravity="center_vertical"
+ android:paddingRight="?android:attr/scrollbarSize">
+
+ <ImageView
+ android:id="@+id/icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="6dip"
+ android:layout_marginRight="6dip"
+ android:layout_gravity="center" />
+
+ <RelativeLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="2dip"
+ android:layout_marginRight="6dip"
+ android:layout_marginTop="6dip"
+ android:layout_marginBottom="6dip"
+ android:layout_weight="1">
+
+ <TextView android:id="@+android:id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:ellipsize="marquee"
+ android:fadingEdge="horizontal" />
+
+ <TextView android:id="@+android:id/summary"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@android:id/title"
+ android:layout_alignLeft="@android:id/title"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:ellipsize="end"
+ android:maxLines="2" />
+
+ </RelativeLayout>
+
+ <Switch android:id="@+id/switchWidget"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:padding="16dip"
+ android:focusable="false"
+ android:clickable="true" />
+
+</LinearLayout>
diff --git a/res/layout/wifi_dialog.xml b/res/layout/wifi_dialog.xml
index f502d6d..47b4e92 100644
--- a/res/layout/wifi_dialog.xml
+++ b/res/layout/wifi_dialog.xml
@@ -185,6 +185,7 @@
<CheckBox android:id="@+id/show_password"
style="@style/wifi_item_content"
+ android:textSize="14sp"
android:text="@string/wifi_show_password" />
</LinearLayout>
</LinearLayout>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 516b5f2..dd0cb60 100755
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -21,4 +21,5 @@
<dimen name="device_memory_usage_button_width">16dip</dimen>
<dimen name="device_memory_usage_button_height">32dip</dimen>
<dimen name="data_usage_chart_height">220dip</dimen>
+ <dimen name="action_bar_switch_padding">16dip</dimen>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 6c1ca6f..3ab1f42 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -24,6 +24,16 @@
<!-- Device Info screen. Used for a status item's value when the proper value is not known -->
<string name="device_info_default">Unknown</string>
+ <!-- Category headings in left-pane header menu --> <skip />
+ <!-- Settings main menu category heading. Wireless and networks (Wi-Fi, Bluetooth, data usage...). [CHAR LIMIT=40] -->
+ <string name="header_category_wireless_networks">WIRELESS &amp; NETWORKS</string>
+ <!-- Settings main menu category heading. Device (Sound, display, battery, applications...). [CHAR LIMIT=40] -->
+ <string name="header_category_device">DEVICE</string>
+ <!-- Settings main menu category heading. Personal (Accounts, security, language, backup...). [CHAR LIMIT=40] -->
+ <string name="header_category_personal">PERSONAL</string>
+ <!-- Settings main menu category heading. System (Updates, data, accessibility, about phone). [CHAR LIMIT=40] -->
+ <string name="header_category_system">SYSTEM</string>
+
<!-- Phone info -->
<!-- Phone Info screen. Button label to turn on the radio . Only shown in diagnostic screen, so precise translation is not needed. -->
<string name="turn_on_radio">Turn on radio</string>
@@ -505,8 +515,8 @@
<string name="airplane_mode_turning_on">Disabling wireless connections\u2026</string>
<!-- Wireless controls settings screen, setting option summary text as airplane mode is being disabled (so it is re-enabling all the wireless conenctions) -->
<string name="airplane_mode_turning_off">Enabling wireless connections\u2026</string>
- <!-- Main Settings screen settings title for things like Wi-Fi, bluetooth, airplane mode. This will take you to another screen with those settings. -->
- <string name="radio_controls_title">Wireless &amp; networks</string>
+ <!-- Main Settings screen settings title for things like airplane mode, tethering, NFC, VPN. This will take you to another screen with those settings. -->
+ <string name="radio_controls_title">More\u2026</string>
<!-- Wireless Settings screen title for things like Wi-Fi, bluetooth, airplane mode. -->
<string name="wireless_networks_settings_title">Wireless &amp; networks</string>
<!-- Main Settings screen settings summary text for the "Wireless controls" setting -->
@@ -875,9 +885,9 @@
<!-- Bluetooth settings check box summary for turning on bluetooth -->
<string name="bluetooth_quick_toggle_summary">Turn on Bluetooth</string>
<!--Used as title on second screen after selecting Bluetooth settings -->
- <string name="bluetooth_settings">Bluetooth settings</string>
+ <string name="bluetooth_settings">Bluetooth</string>
<!--Wireless controls screen, settings title for the item to take you to the bluetooth settings screen -->
- <string name="bluetooth_settings_title">Bluetooth settings</string>
+ <string name="bluetooth_settings_title">Bluetooth</string>
<!--Wireless controls screen, settings summary for the item tot ake you to the bluetooth settings screen -->
<string name="bluetooth_settings_summary">Manage connections, set device name &amp; discoverability</string>
@@ -937,6 +947,15 @@
<string name="bluetooth_device_context_disconnect_unpair">Disconnect &amp; unpair</string>
<!-- Bluetooth settings. Context menu item for a device. Action will take the user to another screen where they can choose exactly which profiles to connect to. -->
<string name="bluetooth_device_context_connect_advanced">Options\u2026</string>
+ <!-- Bluetooth settings. Menu option to Bluetooth advanced settings [CHAR LIMIT=20]-->
+ <string name="bluetooth_menu_advanced">Advanced</string>
+ <!-- Bluetooth settings. Title of the advanced bluetooth settings screen [CHAR LIMIT=30]-->
+ <string name="bluetooth_advanced_titlebar">Advanced Bluetooth</string>
+ <!-- Bluetooth Advanced settings. Used as a label under the shortcut icon that goes to Bluetooth advanced settings. [CHAR LIMIT=20]-->
+ <string name="bluetooth_advanced_settings_label">Advanced Bluetooth</string>
+ <!-- Bluetooth settings. Text displayed when Bluetooth is off and device list is empty [CHAR LIMIT=50]-->
+ <string name="bluetooth_empty_list_bluetooth_off">Turn on bluetooth to see available devices</string>
+
<!-- Bluetooth settings. The title of the screen to pick which profiles to connect to on the device. For example, headphones may have both A2DP and headset, this allows the user to choose which one he wants to connect to. -->
<string name="bluetooth_connect_specific_profiles_title">Connect to\u2026</string>
@@ -1032,16 +1051,18 @@
<string name="wifi_quick_toggle_title">Wi-Fi</string>
<!-- Used in the 1st-level settings screen as the turn-on summary -->
<string name="wifi_quick_toggle_summary">Turn on Wi-Fi</string>
- <!-- Used in the 1st-level settings screen to go to the 2nd-level settings screen -->
- <string name="wifi_settings">Wi-Fi settings</string>
+ <!-- Used in the 1st-level settings screen to go to the 2nd-level settings screen [CHAR LIMIT=20]-->
+ <string name="wifi_settings">Wi-Fi</string>
<!-- Title of the Wi-fi settings screen -->
<string name="wifi_settings_category">Wi-Fi settings</string>
+ <!-- Title of the Wi-fi settings entry in the left top level menu -->
+ <string name="wifi_settings_title">Wi-Fi</string>
<!-- Summary text of the Wi-fi settings screen -->
<string name="wifi_settings_summary">Set up &amp; manage wireless access points</string>
<!-- Summary text when turning Wi-Fi or bluetooth on -->
- <string name="wifi_starting">Turning on\u2026</string>
+ <string name="wifi_starting">Turning on Wi-Fi\u2026</string>
<!-- Summary text when turning Wi-Fi or bluetooth off -->
- <string name="wifi_stopping">Turning off\u2026</string>
+ <string name="wifi_stopping">Turning off Wi-Fi\u2026</string>
<!-- Summary text when Wi-Fi or bluetooth has error -->
<string name="wifi_error">Error</string>
<!-- Toast message when Wi-Fi or bluetooth is disallowed in airplane mode -->
@@ -1060,10 +1081,8 @@
<string name="wifi_setting_sleep_policy_summary_wifi_only">Specify when to disconnect from Wi-Fi</string>
<!-- Generic error message when the sleep policy could not be set. -->
<string name="wifi_setting_sleep_policy_error">There was a problem changing the setting</string>
- <!-- Action message to manually add a wifi network -->
- <string name="wifi_add_network">Add Wi-Fi network</string>
- <!-- Summary for add wifi network setting [CHAR LIMIT=50]-->
- <string name="wifi_add_network_summary">Configure a non-broadcast network</string>
+ <!-- Action bar text message to manually add a wifi network [CHAR LIMIT=20]-->
+ <string name="wifi_add_network">Add network</string>
<!-- Header for the list of wifi networks-->
<string name="wifi_access_points">Wi-Fi networks</string>
<!-- Menu option to scan Wi-Fi networks -->
@@ -1076,6 +1095,8 @@
<string name="wifi_menu_forget">Forget network</string>
<!-- Menu option to modify a Wi-Fi network configuration -->
<string name="wifi_menu_modify">Modify network</string>
+ <!-- Wi-Fi settings. text displayed when WiFi is off and network list is empty [CHAR LIMIT=50]-->
+ <string name="wifi_empty_list_wifi_off">Turn on wifi to see available networks</string>
<!-- Dialog for Access Points --> <skip />
<!-- Label for network setup [CHAR LIMIT=50] -->
@@ -1168,8 +1189,9 @@
<!-- Wi-Fi settings screen, advanced, title of the item to show the Wi-Fi device's current IP address. -->
<string name="wifi_advanced_ip_address_title">IP address</string>
- <string name="wifi_ip_settings_titlebar">IP settings</string>
- <!-- Menu ietm to save the IP settings -->
+ <!-- Wifi Advanced settings. Used as a label under the shortcut icon that goes to Wifi advanced settings. [CHAR LIMIT=20]-->
+ <string name="wifi_advanced_settings_label">IP settings</string>
+ <!-- Menu item to save the IP settings -->
<string name="wifi_ip_settings_menu_save">Save</string>
<!-- Menu ietm to cancel the IP settings -->
<string name="wifi_ip_settings_menu_cancel">Cancel</string>
@@ -1918,6 +1940,10 @@
<!-- Tethering help button - calls up a web view with general tethering info -->
<string name="tethering_help_button_text">Help</string>
+ <!-- Wireless controls, header for the general category (airplane mode, VPN, NFC, tethering...) [CHAR LIMIT=40]-->
+ <string name="wireless_category_general">General</string>
+ <!-- Wireless controls, header for the mobile networks category (4G/ network operator...) [CHAR LIMIT=40]-->
+ <string name="wireless_category_mobile_networks">Mobile networks</string>
<!-- Wireless controls, item title to go into the network settings -->
<string name="network_settings_title">Mobile networks</string>
<!-- Wireless controls, the item summary for the user to go into the network settings -->
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 1a6380f..e2d7fe2 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -83,7 +83,7 @@
</style>
<style name="wifi_item">
- <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_width">200dip</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">8dip</item>
<item name="android:layout_marginLeft">16dip</item>
diff --git a/res/xml/bluetooth_advanced_settings.xml b/res/xml/bluetooth_advanced_settings.xml
new file mode 100644
index 0000000..345b3bf
--- /dev/null
+++ b/res/xml/bluetooth_advanced_settings.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 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/bluetooth_advanced_titlebar">
+
+ <com.android.settings.bluetooth.BluetoothNamePreference
+ android:key="bt_name"
+ android:title="@string/bluetooth_device_name"
+ android:summary="@string/bluetooth_name_not_set"
+ android:dialogTitle="@string/bluetooth_device_name"
+ android:persistent="false"
+ android:singleLine="true" />
+
+ <CheckBoxPreference
+ android:key="bt_discoverable"
+ android:title="@string/bluetooth_visibility"
+ android:summaryOn="@string/bluetooth_is_discoverable"
+ android:summaryOff="@string/bluetooth_not_discoverable"
+ android:persistent="false" />
+
+ <ListPreference
+ android:key="bt_discoverable_timeout"
+ android:title="@string/bluetooth_visibility_timeout"
+ android:summary="@string/bluetooth_visibility_timeout_summary"
+ android:entries="@array/bluetooth_visibility_timeout_entries"
+ android:entryValues="@array/bluetooth_visibility_timeout_values" />
+
+ <Preference
+ android:key="bt_show_received_files"
+ android:title="@string/bluetooth_show_received_files_title"
+ android:summary="@string/bluetooth_show_received_files_summary" />
+
+</PreferenceScreen>
diff --git a/res/xml/bluetooth_settings.xml b/res/xml/bluetooth_settings.xml
index 042eed5..783a860 100644
--- a/res/xml/bluetooth_settings.xml
+++ b/res/xml/bluetooth_settings.xml
@@ -18,54 +18,4 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/bluetooth_settings" >
- <PreferenceCategory
- android:title="@string/bluetooth_preference_device_settings"/>
-
- <CheckBoxPreference
- android:key="bt_checkbox"
- android:title="@string/bluetooth"
- android:summary="@string/bluetooth_quick_toggle_summary" />
-
- <com.android.settings.bluetooth.BluetoothNamePreference
- android:key="bt_name"
- android:title="@string/bluetooth_device_name"
- android:summary="@string/bluetooth_name_not_set"
- android:dialogTitle="@string/bluetooth_device_name"
- android:dependency="bt_checkbox"
- android:persistent="false"
- android:singleLine="true" />
-
- <CheckBoxPreference
- android:key="bt_discoverable"
- android:title="@string/bluetooth_visibility"
- android:dependency="bt_checkbox"
- android:summaryOn="@string/bluetooth_is_discoverable"
- android:summaryOff="@string/bluetooth_not_discoverable"
- android:persistent="false" />
-
- <ListPreference
- android:key="bt_discoverable_timeout"
- android:title="@string/bluetooth_visibility_timeout"
- android:dependency="bt_discoverable"
- android:summary="@string/bluetooth_visibility_timeout_summary"
- android:entries="@array/bluetooth_visibility_timeout_entries"
- android:entryValues="@array/bluetooth_visibility_timeout_values" />
-
- <Preference
- android:key="bt_show_received_files"
- android:dependency="bt_checkbox"
- android:title="@string/bluetooth_show_received_files_title"
- android:summary="@string/bluetooth_show_received_files_summary" />
-
- <PreferenceCategory
- android:key="bt_device_list"
- android:title="@string/bluetooth_preference_paired_devices"
- android:orderingFromXml="false" />
-
- <Preference
- android:key="bt_find_nearby"
- android:dependency="bt_checkbox"
- android:fragment="com.android.settings.bluetooth.BluetoothFindNearby"
- android:title="@string/bluetooth_preference_find_nearby_title" />
-
</PreferenceScreen>
diff --git a/res/xml/settings_headers.xml b/res/xml/settings_headers.xml
index 5411308..4534f82 100644
--- a/res/xml/settings_headers.xml
+++ b/res/xml/settings_headers.xml
@@ -17,32 +17,32 @@
<preference-headers
xmlns:android="http://schemas.android.com/apk/res/android">
- <!-- Operator hook -->
-
- <header
- android:fragment="com.android.settings.WirelessSettings"
- android:id="@+id/operator_settings">
- <intent android:action="com.android.settings.OPERATOR_APPLICATION_SETTING" />
- </header>
- <!-- Manufacturer hook -->
+ <!-- WIRELESS and NETWORKS -->
+ <header android:title="@string/header_category_wireless_networks" />
+ <!-- Wifi -->
<header
- android:fragment="com.android.settings.WirelessSettings"
- android:id="@+id/manufacturer_settings">
- <intent android:action="com.android.settings.MANUFACTURER_APPLICATION_SETTING" />
- </header>
+ android:id="@+id/wifi_settings"
+ android:fragment="com.android.settings.wifi.WifiSettings"
+ android:title="@string/wifi_settings_title"
+ android:icon="@drawable/ic_settings_wireless" />
- <!-- Wireless controls -->
+ <!-- Bluetooth -->
+ <header
+ android:id="@+id/bluetooth_settings"
+ android:fragment="com.android.settings.bluetooth.BluetoothSettings"
+ android:title="@string/bluetooth_settings_title"
+ android:icon="@drawable/ic_settings_bluetooth2" />
+ <!-- Data Usage -->
<header
- android:id="@+id/wireless_settings"
- android:title="@string/radio_controls_title"
- android:fragment="com.android.settings.WirelessSettings"
- android:icon="@drawable/ic_settings_wireless" />
+ android:id="@+id/data_usage_settings"
+ android:fragment="com.android.settings.DataUsageSummary"
+ android:title="@string/data_usage_summary_title"
+ android:icon="@drawable/ic_settings_data_usage" />
<!-- Call settings - this is in the phone process -->
-
<header
android:id="@+id/call_settings"
android:icon="@drawable/ic_settings_call"
@@ -53,8 +53,25 @@
android:targetClass="com.android.phone.CallFeaturesSetting" />
</header>
- <!-- Sound -->
+ <!-- Operator hook -->
+ <header
+ android:fragment="com.android.settings.WirelessSettings"
+ android:id="@+id/operator_settings">
+ <intent android:action="com.android.settings.OPERATOR_APPLICATION_SETTING" />
+ </header>
+ <!-- Other wireless and network controls -->
+ <header
+ android:id="@+id/wireless_settings"
+ android:title="@string/radio_controls_title"
+ android:fragment="com.android.settings.WirelessSettings"
+ android:icon="@drawable/ic_settings_more_wireless" />
+
+
+ <!-- DEVICE -->
+ <header android:title="@string/header_category_device" />
+
+ <!-- Sound -->
<header
android:id="@+id/sound_settings"
android:icon="@drawable/ic_settings_sound"
@@ -62,73 +79,72 @@
android:title="@string/sound_settings_title" />
<!-- Display -->
-
<header
android:id="@+id/display_settings"
android:icon="@drawable/ic_settings_display"
android:fragment="com.android.settings.DisplaySettings"
android:title="@string/display_settings_title" />
- <!-- Security & Location -->
-
+ <!-- Storage -->
<header
- android:fragment="com.android.settings.SecuritySettings"
- android:icon="@drawable/ic_settings_security"
- android:title="@string/security_settings_title"
- android:id="@+id/security_settings" />
+ android:id="@+id/storage_settings"
+ android:fragment="com.android.settings.deviceinfo.Memory"
+ android:icon="@drawable/ic_settings_storage"
+ android:title="@string/storage_settings" />
<!-- Application Settings -->
-
<header
android:fragment="com.android.settings.ApplicationSettings"
android:icon="@drawable/ic_settings_applications"
android:title="@string/applications_settings"
android:id="@+id/application_settings" />
+ <!-- Manufacturer hook -->
+ <header
+ android:fragment="com.android.settings.WirelessSettings"
+ android:id="@+id/manufacturer_settings">
+ <intent android:action="com.android.settings.MANUFACTURER_APPLICATION_SETTING" />
+ </header>
+
+
+ <!-- PERSONAL -->
+ <header android:title="@string/header_category_personal" />
+
<!-- Data Sync. The settings activity will ensure this is resolved to an
activity on the system image, otherwise it will remove this
preference. -->
-
<header
android:fragment="com.android.settings.accounts.ManageAccountsSettings"
android:icon="@drawable/ic_settings_sync"
android:title="@string/sync_settings"
android:id="@+id/sync_settings" />
- <!-- Privacy -->
+ <!-- Security & Location -->
+ <header
+ android:fragment="com.android.settings.SecuritySettings"
+ android:icon="@drawable/ic_settings_security"
+ android:title="@string/security_settings_title"
+ android:id="@+id/security_settings" />
+ <!-- Privacy -->
<header
android:fragment="com.android.settings.PrivacySettings"
android:icon="@drawable/ic_settings_privacy"
android:title="@string/privacy_settings"
android:id="@+id/privacy_settings" />
- <!-- Storage -->
-
- <header
- android:id="@+id/storage_settings"
- android:fragment="com.android.settings.deviceinfo.Memory"
- android:icon="@drawable/ic_settings_storage"
- android:title="@string/storage_settings" />
-
<!-- Language -->
-
<header
android:id="@+id/language_settings"
android:fragment="com.android.settings.inputmethod.InputMethodAndLanguageSettings"
android:icon="@drawable/ic_settings_language"
android:title="@string/language_settings" />
- <!-- Accessibility feedback -->
- <header
- android:id="@+id/accessibility_settings"
- android:fragment="com.android.settings.AccessibilitySettings"
- android:icon="@drawable/ic_settings_accessibility"
- android:title="@string/accessibility_settings" />
+ <!-- SYSTEM -->
+ <header android:title="@string/header_category_system" />
<!-- Dock -->
-
<header
android:id="@+id/dock_settings"
android:fragment="com.android.settings.DockSettings"
@@ -136,15 +152,20 @@
android:title="@string/dock_settings" />
<!-- Date & Time -->
-
<header
android:id="@+id/date_time_settings"
android:fragment="com.android.settings.DateTimeSettings"
android:icon="@drawable/ic_settings_date_time"
android:title="@string/date_and_time_settings_title" />
- <!-- About Device -->
+ <!-- Accessibility feedback -->
+ <header
+ android:id="@+id/accessibility_settings"
+ android:fragment="com.android.settings.AccessibilitySettings"
+ android:icon="@drawable/ic_settings_accessibility"
+ android:title="@string/accessibility_settings" />
+ <!-- About Device -->
<header
android:id="@+id/about_settings"
android:fragment="com.android.settings.DeviceInfoSettings"
diff --git a/res/xml/wifi_access_points_for_wifi_setup_xl.xml b/res/xml/wifi_access_points_for_wifi_setup_xl.xml
index 013c62c..14266f5 100644
--- a/res/xml/wifi_access_points_for_wifi_setup_xl.xml
+++ b/res/xml/wifi_access_points_for_wifi_setup_xl.xml
@@ -15,7 +15,4 @@
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
- <com.android.settings.wifi.AccessPointCategoryForSetupWizardXL
- android:key="access_points"
- android:persistent="false" />
</PreferenceScreen>
diff --git a/res/xml/wifi_advanced_settings.xml b/res/xml/wifi_advanced_settings.xml
index 4d85178..1444de1 100644
--- a/res/xml/wifi_advanced_settings.xml
+++ b/res/xml/wifi_advanced_settings.xml
@@ -17,6 +17,22 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/wifi_advanced_titlebar">
+ <!-- android:dependency="enable_wifi" -->
+ <CheckBoxPreference
+ android:key="notify_open_networks"
+ android:title="@string/wifi_notify_open_networks"
+ android:summary="@string/wifi_notify_open_networks_summary"
+ android:persistent="false" />
+
+ <ListPreference
+ android:key="sleep_policy"
+ android:title="@string/wifi_setting_sleep_policy_title"
+ android:summary="@string/wifi_setting_sleep_policy_summary"
+ android:persistent="false"
+ android:entries="@array/wifi_sleep_policy_entries"
+ android:entryValues="@array/wifi_sleep_policy_values"
+ />
+
<ListPreference
android:key="frequency_band"
android:title="@string/wifi_setting_frequency_band_title"
diff --git a/res/xml/wifi_settings.xml b/res/xml/wifi_settings.xml
index 0707030..d984d8f 100644
--- a/res/xml/wifi_settings.xml
+++ b/res/xml/wifi_settings.xml
@@ -17,39 +17,4 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/wifi_settings_category">
- <CheckBoxPreference
- android:key="enable_wifi"
- android:title="@string/wifi_quick_toggle_title"
- android:summary="@string/wifi_quick_toggle_summary"
- android:persistent="false" />
-
- <CheckBoxPreference
- android:key="notify_open_networks"
- android:dependency="enable_wifi"
- android:title="@string/wifi_notify_open_networks"
- android:summary="@string/wifi_notify_open_networks_summary"
- android:persistent="false" />
-
- <ListPreference
- android:key="sleep_policy"
- android:title="@string/wifi_setting_sleep_policy_title"
- android:summary="@string/wifi_setting_sleep_policy_summary"
- android:persistent="false"
- android:entries="@array/wifi_sleep_policy_entries"
- android:entryValues="@array/wifi_sleep_policy_values"
- />
-
- <com.android.settings.ProgressCategory
- android:key="access_points"
- android:dependency="enable_wifi"
- android:title="@string/wifi_access_points"
- android:persistent="false" />
-
- <Preference
- android:key="add_network"
- android:dependency="enable_wifi"
- android:title="@string/wifi_add_network"
- android:summary="@string/wifi_add_network_summary"
- android:persistent="false" />
-
</PreferenceScreen>
diff --git a/res/xml/wireless_settings.xml b/res/xml/wireless_settings.xml
index 321facb..f3de7ec 100644
--- a/res/xml/wireless_settings.xml
+++ b/res/xml/wireless_settings.xml
@@ -17,6 +17,9 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/wireless_networks_settings_title">
+ <PreferenceCategory
+ android:title="@string/wireless_category_general" />
+
<CheckBoxPreference
android:key="toggle_airplane"
android:title="@string/airplane_mode"
@@ -24,31 +27,17 @@
android:persistent="false"
android:disableDependentsState="true" />
- <!-- Programmatically will have dynamic summary, but we provide the fallback summary. -->
- <CheckBoxPreference
- android:key="toggle_wifi"
- android:title="@string/wifi_quick_toggle_title"
- android:summary="@string/wifi_quick_toggle_summary"
- android:persistent="false" />
-
- <PreferenceScreen
- android:fragment="com.android.settings.wifi.WifiSettings"
- android:key="wifi_settings"
- android:title="@string/wifi_settings"
- android:summary="@string/wifi_settings_summary" >
- </PreferenceScreen>
-
<CheckBoxPreference
- android:key="toggle_bluetooth"
- android:title="@string/bluetooth_quick_toggle_title"
- android:summary="@string/bluetooth_quick_toggle_summary"
+ android:key="toggle_nfc"
+ android:title="@string/nfc_quick_toggle_title"
+ android:summary="@string/nfc_quick_toggle_summary"
android:persistent="false" />
<PreferenceScreen
- android:fragment="com.android.settings.bluetooth.BluetoothSettings"
- android:key="bt_settings"
- android:title="@string/bluetooth_settings_title"
- android:summary="@string/bluetooth_settings_summary">
+ android:fragment="com.android.settings.vpn.VpnSettings"
+ android:key="vpn_settings"
+ android:title="@string/vpn_settings_title"
+ android:summary="@string/vpn_settings_summary" >
</PreferenceScreen>
<PreferenceScreen
@@ -58,18 +47,8 @@
android:summary="@string/tether_settings_summary_all">
</PreferenceScreen>
- <PreferenceScreen
- android:fragment="com.android.settings.vpn.VpnSettings"
- android:key="vpn_settings"
- android:title="@string/vpn_settings_title"
- android:summary="@string/vpn_settings_summary" >
- </PreferenceScreen>
-
- <CheckBoxPreference
- android:key="toggle_nfc"
- android:title="@string/nfc_quick_toggle_title"
- android:summary="@string/nfc_quick_toggle_summary"
- android:persistent="false" />
+ <PreferenceCategory
+ android:title="@string/wireless_category_mobile_networks" />
<PreferenceScreen
android:key="mobile_network_settings"
@@ -89,9 +68,4 @@
android:summary="@string/proxy_settings_summary" >
</PreferenceScreen>
- <PreferenceScreen
- android:fragment="com.android.settings.DataUsageSummary"
- android:key="data_usage_summary"
- android:title="@string/data_usage_summary_title" />
-
</PreferenceScreen>