summaryrefslogtreecommitdiff
path: root/app/src/main/res/values
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/values
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/values')
-rw-r--r--app/src/main/res/values/arrays.xml13
-rw-r--r--app/src/main/res/values/dimens.xml1
-rw-r--r--app/src/main/res/values/strings.xml6
3 files changed, 19 insertions, 1 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
new file mode 100644
index 0000000..f82d234
--- /dev/null
+++ b/app/src/main/res/values/arrays.xml
@@ -0,0 +1,13 @@
+<resources>
+ <string-array name="settings_unit_entries">
+ <item>Celsius</item>
+ <item>Fahrenheit</item>
+ <item>Kelvin</item>
+ </string-array>
+
+ <string-array name="settings_unit_values">
+ <item>celsius</item>
+ <item>fahrenheit</item>
+ <item>kelvin</item>
+ </string-array>
+</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
index cf00d3f..125df87 100644
--- a/app/src/main/res/values/dimens.xml
+++ b/app/src/main/res/values/dimens.xml
@@ -1,4 +1,3 @@
<resources>
<dimen name="fab_margin">16dp</dimen>
- <dimen name="text_margin">16dp</dimen>
</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index c90f66a..df21b28 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -14,6 +14,8 @@
<string name="temperature_nothing">—</string>
<string name="temperature_celsius">%.1f °C</string>
+ <string name="temperature_fahrenheit">%.0f °F</string>
+ <string name="temperature_kelvin">%.1f °K</string>
<string name="last_24h">Last 24h:</string>
@@ -40,4 +42,8 @@
<string name="connection_result_unrecognized">Unrecognized device</string>
<string name="connection_result_unknown">Unknown failure</string>
+ <!-- Settings -->
+ <string name="settings_title">Settings</string>
+ <string name="settings_unit">Units</string>
+
</resources> \ No newline at end of file