diff options
| author | Lifu Tang <lifu@google.com> | 2013-08-03 00:04:23 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-03 00:04:24 +0000 |
| commit | 1cad5b21e4014e013fdc169f100bf36146802c0b (patch) | |
| tree | fb48d8e067210202e2ebf53fa1c4791317bc7a84 /res | |
| parent | b1f8607379b84e8eb02fee06e9af6897f5019f5f (diff) | |
| parent | d5fbbc4e49727f98188aeb89e32146c7fe546c75 (diff) | |
| download | packages_apps_Settings-1cad5b21e4014e013fdc169f100bf36146802c0b.tar.gz packages_apps_Settings-1cad5b21e4014e013fdc169f100bf36146802c0b.tar.bz2 packages_apps_Settings-1cad5b21e4014e013fdc169f100bf36146802c0b.zip | |
Merge "Added UI widgets for new location settings page"
Diffstat (limited to 'res')
| -rw-r--r-- | res/values/strings.xml | 25 | ||||
| -rw-r--r-- | res/xml/location_mode.xml | 36 | ||||
| -rw-r--r-- | res/xml/location_settings.xml | 42 |
3 files changed, 71 insertions, 32 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 1d2ba3843..1bdef29ae 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -684,7 +684,7 @@ <!-- Text shown for title of profile info setting [CHAR LIMIT=20]--> <string name="profile_info_settings_title">Profile info</string> <!-- Main Settings screen setting option title for the item to take you to the location screen --> - <string name="location_settings_title">Location access</string> + <string name="location_settings_title">Location</string> <!-- Main Settings screen setting option title for the item to take you to the security screen --> <string name="security_settings_title">Security</string> <!-- Main Settings screen setting option summary text for the item tot ake you to the security and location screen --> @@ -2354,6 +2354,27 @@ <!-- Security & location settings screen, section header for settings relating to location --> <string name="location_title">My Location</string> + <!-- [CHAR LIMIT=30] Location settings screen, setting preference screen box label for location mode --> + <string name="location_mode_title">Mode</string> + <!-- [CHAR LIMIT=30] Location settings screen, high accuracy location mode --> + <string name="location_mode_high_accuracy_title">High accuracy</string> + <!-- [CHAR LIMIT=30] Location settings screen, battery saving location mode --> + <string name="location_mode_battery_saving_title">Battery saving</string> + <!-- [CHAR LIMIT=30] Location settings screen, device sensors only location mode --> + <string name="location_mode_sensors_only_title">Device sensors only</string> + <!-- [CHAR LIMIT=30] Location settings screen, sub category for recent location requests --> + <string name="location_category_recent_location_requests">Recent location requests</string> + <!-- [CHAR LIMIT=30] Location settings screen, sub category for location services --> + <string name="location_category_location_services">Location services</string> + <!-- [CHAR LIMIT=30] Location mode screen, screen title --> + <string name="location_mode_screen_title">Location mode</string> + <!-- [CHAR LIMIT=30] Location mode screen, description for high accuracy mode --> + <string name="location_mode_high_accuracy_description">Use GPS, Wi\u2011Fi and mobile networks to estimate location </string> + <!-- [CHAR LIMIT=30] Location mode screen, description for battery saving mode --> + <string name="location_mode_battery_saving_description">Use Wi\u2011Fi and mobile networks to estimate location</string> + <!-- [CHAR LIMIT=30] Location mode screen, description for sensors only mode --> + <string name="location_mode_sensors_only_description">Use GPS to pinpoint your location</string> + <!-- [CHAR LIMIT=30] Security & location settings screen, setting check box label for Google location service (cell ID, wifi, etc.) --> <string name="location_network_based">Wi\u2011Fi & mobile network location</string> <!-- [CHAR LIMIT=130] Security & location settings screen, setting summary for Google location service check box--> @@ -4579,7 +4600,7 @@ <!-- Restrictions summary for allowing NFC transfers (phone) [CHAR LIMIT=100] --> <string name="restriction_nfc_enable_summary" product="default">Allow data exchange when the phone touches another device</string> <!-- Restrictions title for allowing location sharing [CHAR LIMIT=35] --> - <string name="restriction_location_enable_title">Location access</string> + <string name="restriction_location_enable_title">Location</string> <!-- Restrictions summary for allowing location sharing [CHAR LIMIT=100] --> <string name="restriction_location_enable_summary" >Let apps use your location information</string> diff --git a/res/xml/location_mode.xml b/res/xml/location_mode.xml new file mode 100644 index 000000000..3627f119b --- /dev/null +++ b/res/xml/location_mode.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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/location_mode_screen_title"> + + <com.android.settings.location.RadioButtonPreference + android:key="high_accuracy" + android:title="@string/location_mode_high_accuracy_title" + android:summary="@string/location_mode_high_accuracy_description" + android:persistent="false" /> + <com.android.settings.location.RadioButtonPreference + android:key="battery_saving" + android:title="@string/location_mode_battery_saving_title" + android:summary="@string/location_mode_battery_saving_description" + android:persistent="false" /> + <com.android.settings.location.RadioButtonPreference + android:key="sensors_only" + android:title="@string/location_mode_sensors_only_title" + android:summary="@string/location_mode_sensors_only_description" + android:persistent="false" /> + +</PreferenceScreen> diff --git a/res/xml/location_settings.xml b/res/xml/location_settings.xml index 9af36dadb..293b7722d 100644 --- a/res/xml/location_settings.xml +++ b/res/xml/location_settings.xml @@ -16,38 +16,20 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:title="@string/location_settings_title"> - - <com.android.settings.location.WrappingSwitchPreference - android:key="location_toggle" - android:title="@string/location_access_title" - android:summary="@string/location_access_summary" - android:persistent="true"/> + <PreferenceScreen + android:title="Under Construction" + android:summary="This page is under construction and everything here is expected to be broken for a while. Keep calm and carry on!" /> + <PreferenceScreen + android:key="location_mode" + android:title="@string/location_mode_title" + android:summary="@string/location_mode_high_accuracy_title" /> <PreferenceCategory - android:key="location_sources" - android:title="@string/location_sources_heading" /> - - <com.android.settings.location.RadioButtonPreference - android:key="location_gps" - android:title="@string/location_gps" - android:summary="@string/location_street_level" - android:dependency="location_toggle" - android:persistent="false" /> - - <com.android.settings.location.RadioButtonPreference - android:key="location_network" - android:title="@string/location_network_based" - android:summary="@string/location_neighborhood_level" - android:dependency="location_toggle" - android:persistent="false" /> + android:key="recent_location_requests" + android:title="@string/location_category_recent_location_requests" /> -<!-- Disabled to avoid confusion on devices with no AGPS - For Google experience devices we want AGPS on by default (if supported) so we don't really need this. - <CheckBoxPreference - android:key="assisted_gps" - android:title="@string/assisted_gps" - android:summaryOn="@string/assisted_gps_enabled" - android:summaryOff="@string/assisted_gps_disabled"/> ---> + <PreferenceCategory + android:key="location_services" + android:title="@string/location_category_location_services" /> </PreferenceScreen> |
