aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-08-04 18:49:03 +0200
committerJorge Ruesga <jorge@ruesga.com>2013-08-04 18:49:03 +0200
commit724e4ae4d237c81385e9d0b6b242d1fa3124127a (patch)
tree8fbdbf3b575597e8c1e5251acd702002a88c02e9 /res
parent9a4d4f244d9e2d24295bf89c2bbb01610aa33899 (diff)
downloadandroid_packages_wallpapers_PhotoPhase-724e4ae4d237c81385e9d0b6b242d1fa3124127a.tar.gz
android_packages_wallpapers_PhotoPhase-724e4ae4d237c81385e9d0b6b242d1fa3124127a.tar.bz2
android_packages_wallpapers_PhotoPhase-724e4ae4d237c81385e9d0b6b242d1fa3124127a.zip
Touch actions (#5)
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'res')
-rw-r--r--res/values/arrays.xml14
-rw-r--r--res/values/strings.xml8
-rw-r--r--res/xml/preferences_general.xml11
3 files changed, 33 insertions, 0 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 1f0c866..ecfbb65 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -34,6 +34,20 @@
<item>604800</item>
</string-array>
+ <string-array name="touch_actions_labels" translatable="false">
+ <item>@string/touch_actions_none</item>
+ <item>@string/touch_actions_transition</item>
+ <item>@string/touch_actions_open</item>
+ <item>@string/touch_actions_share</item>
+ </string-array>
+
+ <string-array name="touch_actions_values" translatable="false">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ </string-array>
+
<string-array name="transitions_labels" translatable="false">
<item>@string/transitions_random</item>
<item>@string/transitions_swap</item>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 0e4d33d..aff0185 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -43,6 +43,8 @@
<string name="pref_general_settings_wallpaper_dim_summary">Set the brightness of the wallpaper for a better visualization and battery performance</string>
<string name="pref_general_settings_background_color">Background color</string>
<string name="pref_general_settings_background_color_summary">Set the background color of the wallpaper</string>
+ <string name="pref_general_touch_action">Touch action</string>
+ <string name="pref_general_touch_action_summary">Select the action to apply when touch a frame</string>
<string name="pref_general_transitions">Transitions</string>
<string name="pref_general_transitions_types">Types</string>
@@ -94,6 +96,12 @@
<string name="refresh_intervals_2d">2 days</string>
<string name="refresh_intervals_1w">1 week</string>
+ <!-- Touch actions -->
+ <string name="touch_actions_none">None</string>
+ <string name="touch_actions_transition">Do transition</string>
+ <string name="touch_actions_open">Open</string>
+ <string name="touch_actions_share">Share</string>
+
<!-- Transitions -->
<string name="transitions_random">Random</string>
<string name="transitions_swap">Swap</string>
diff --git a/res/xml/preferences_general.xml b/res/xml/preferences_general.xml
index 5877d52..b6d60f8 100644
--- a/res/xml/preferences_general.xml
+++ b/res/xml/preferences_general.xml
@@ -29,6 +29,7 @@
android:persistent="true"
android:defaultValue="0" />
+ <!-- Background color -->
<org.cyanogenmod.wallpapers.photophase.widgets.ColorPickerPreference
android:key="ui_background_color"
android:title="@string/pref_general_settings_background_color"
@@ -36,6 +37,16 @@
android:persistent="true"
android:defaultValue="@color/wallpaper_background_color" />
+ <!-- Touch action -->
+ <ListPreference
+ android:key="ui_touch_action"
+ android:title="@string/pref_general_touch_action"
+ android:summary="@string/pref_general_touch_action_summary"
+ android:persistent="true"
+ android:entries="@array/touch_actions_labels"
+ android:entryValues="@array/touch_actions_values"
+ android:defaultValue="0" />
+
</PreferenceCategory>
<!-- Transitions -->