summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2016-04-26 22:42:21 -0700
committerLuis Vidal <lvidal@cyngn.com>2016-05-06 16:05:14 -0700
commit215d44020f4a6449260ebbab55feb3462f2416a6 (patch)
treeb454243e6c52234393e55ffa250b2048f6dadc61 /res/xml
parent23b30aaefcf611e0c5e1915437b48589da724866 (diff)
downloadpackages_apps_Settings-215d44020f4a6449260ebbab55feb3462f2416a6.tar.gz
packages_apps_Settings-215d44020f4a6449260ebbab55feb3462f2416a6.tar.bz2
packages_apps_Settings-215d44020f4a6449260ebbab55feb3462f2416a6.zip
Add option to select temperature unit
Added a menu in the weather settings to select the temperature unit. This setting will be visible only if the user has at least one weather service provider installed. The weather settings layout was refactored to make room for this new preference Change-Id: I5e9f206573e0ff95fcee31a010b52530a907acc6 TICKET: CYNGNOS-2605
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/weather_settings.xml40
1 files changed, 40 insertions, 0 deletions
diff --git a/res/xml/weather_settings.xml b/res/xml/weather_settings.xml
new file mode 100644
index 000000000..17df51a62
--- /dev/null
+++ b/res/xml/weather_settings.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 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"
+ xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
+ android:title="@string/weather_settings_general_settings_title"
+ settings:keywords="@string/weather_settings_keyword">
+ <PreferenceCategory
+ android:key="weather_general_settings"
+ android:title="@string/weather_settings_general_settings_title"
+ android:order="0">
+ <ListPreference
+ android:key="weather_temperature_unit"
+ android:entries="@array/weather_temp_unit_entries"
+ android:entryValues="@array/weather_temp_unit_values"
+ android:title="@string/weather_settings_temp_units_title"
+ android:summary="%s"
+ android:persistent="false" />
+ </PreferenceCategory>
+
+ <PreferenceCategory
+ android:key="weather_service_providers"
+ android:title="@string/weather_settings_providers_title"
+ android:order="1">
+
+ </PreferenceCategory>
+</PreferenceScreen>