summaryrefslogtreecommitdiff
path: root/app/src/main/res/xml/root_preferences.xml
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2021-03-26 20:09:25 +0100
committerJavier <dev.git@javispedro.com>2021-03-26 20:09:25 +0100
commit6b2dd5b290850301472a7097c84f76972b43b507 (patch)
tree670952beacb900aa15d4b9b3b367805cd18993c5 /app/src/main/res/xml/root_preferences.xml
parent558f29b84406b0d4b9493503f0ca02b35bfed9cf (diff)
downloadrempe-6b2dd5b290850301472a7097c84f76972b43b507.tar.gz
rempe-6b2dd5b290850301472a7097c84f76972b43b507.zip
Add new Preferences activity and allow choosing temperature units
Diffstat (limited to 'app/src/main/res/xml/root_preferences.xml')
-rw-r--r--app/src/main/res/xml/root_preferences.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/src/main/res/xml/root_preferences.xml b/app/src/main/res/xml/root_preferences.xml
new file mode 100644
index 0000000..c360335
--- /dev/null
+++ b/app/src/main/res/xml/root_preferences.xml
@@ -0,0 +1,11 @@
+<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
+
+ <ListPreference
+ app:key="units"
+ app:title="@string/settings_unit"
+ app:entries="@array/settings_unit_entries"
+ app:entryValues="@array/settings_unit_values"
+ app:defaultValue="celsius"
+ app:useSimpleSummaryProvider="true" />
+
+</PreferenceScreen> \ No newline at end of file