aboutsummaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorjruesga <jorge@ruesga.com>2013-07-01 02:42:54 +0200
committerjruesga <jorge@ruesga.com>2013-07-01 02:42:54 +0200
commitf29d68d929061ccbb982019c5020be721bbef862 (patch)
tree24ce41fb0dd7f942ca9dbe956fe93fe836da66c2 /res/xml
downloadandroid_packages_wallpapers_PhotoPhase-f29d68d929061ccbb982019c5020be721bbef862.tar.gz
android_packages_wallpapers_PhotoPhase-f29d68d929061ccbb982019c5020be721bbef862.tar.bz2
android_packages_wallpapers_PhotoPhase-f29d68d929061ccbb982019c5020be721bbef862.zip
Initial commit
Signed-off-by: jruesga <jorge@ruesga.com>
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/preferences_general.xml83
-rw-r--r--res/xml/preferences_headers.xml33
-rw-r--r--res/xml/preferences_layout.xml26
-rw-r--r--res/xml/preferences_media.xml57
-rw-r--r--res/xml/wallpaper.xml20
5 files changed, 219 insertions, 0 deletions
diff --git a/res/xml/preferences_general.xml b/res/xml/preferences_general.xml
new file mode 100644
index 0000000..5877d52
--- /dev/null
+++ b/res/xml/preferences_general.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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">
+
+ <!-- Settings -->
+ <PreferenceCategory
+ android:key="category_settings"
+ android:title="@string/pref_general_settings">
+
+ <!-- Dim screen -->
+ <org.cyanogenmod.wallpapers.photophase.preferences.SeekBarProgressPreference
+ android:key="ui_wallpaper_dim"
+ android:title="@string/pref_general_settings_wallpaper_dim"
+ android:summary="@string/pref_general_settings_wallpaper_dim_summary"
+ android:persistent="true"
+ android:defaultValue="0" />
+
+ <org.cyanogenmod.wallpapers.photophase.widgets.ColorPickerPreference
+ android:key="ui_background_color"
+ android:title="@string/pref_general_settings_background_color"
+ android:summary="@string/pref_general_settings_background_color_summary"
+ android:persistent="true"
+ android:defaultValue="@color/wallpaper_background_color" />
+
+ </PreferenceCategory>
+
+ <!-- Transitions -->
+ <PreferenceCategory
+ android:key="category_transitions"
+ android:title="@string/pref_general_transitions">
+
+ <!-- Types -->
+ <ListPreference
+ android:key="ui_transition_types"
+ android:title="@string/pref_general_transitions_types"
+ android:summary="@string/pref_general_transitions_types_summary"
+ android:persistent="true"
+ android:entries="@array/transitions_labels"
+ android:entryValues="@array/transitions_values"
+ android:defaultValue="0" />
+
+ <!-- Transitions Interval -->
+ <org.cyanogenmod.wallpapers.photophase.preferences.SeekBarProgressPreference
+ android:key="ui_transition_interval"
+ android:title="@string/pref_general_transitions_interval"
+ android:summary="@string/pref_general_transitions_interval_summary"
+ android:persistent="true"
+ android:defaultValue="2" />
+
+ </PreferenceCategory>
+
+ <!-- Effects -->
+ <PreferenceCategory
+ android:key="category_effects"
+ android:title="@string/pref_general_effects">
+
+ <!-- Transitions -->
+ <ListPreference
+ android:key="ui_effect_types"
+ android:title="@string/pref_general_effects_types"
+ android:summary="@string/pref_general_effects_types_summary"
+ android:persistent="true"
+ android:entries="@array/effects_labels"
+ android:entryValues="@array/effects_values"
+ android:defaultValue="1" />
+
+ </PreferenceCategory>
+
+</PreferenceScreen>
diff --git a/res/xml/preferences_headers.xml b/res/xml/preferences_headers.xml
new file mode 100644
index 0000000..db45326
--- /dev/null
+++ b/res/xml/preferences_headers.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+ -->
+
+<preference-headers xmlns:android="http://schemas.android.com/apk/res/android">
+ <header
+ android:title="@string/pref_general"
+ android:fragment="org.cyanogenmod.wallpapers.photophase.preferences.GeneralPreferenceFragment"
+ android:summary="@string/pref_general_summary" />
+ <header
+ android:title="@string/pref_media"
+ android:fragment="org.cyanogenmod.wallpapers.photophase.preferences.MediaPreferenceFragment"
+ android:summary="@string/pref_media_summary" />
+ <header
+ android:title="@string/pref_layout"
+ android:fragment="org.cyanogenmod.wallpapers.photophase.preferences.LayoutPreferenceFragment"
+ android:summary="@string/pref_layout_summary" />
+ <header
+ android:title="@string/pref_about"
+ android:summary="@null" />
+</preference-headers>
diff --git a/res/xml/preferences_layout.xml b/res/xml/preferences_layout.xml
new file mode 100644
index 0000000..6fdf438
--- /dev/null
+++ b/res/xml/preferences_layout.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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">
+
+ <!-- Disposition -->
+ <PreferenceCategory
+ android:key="category_disposition"
+ android:title="@string/pref_layout_disposition">
+
+ </PreferenceCategory>
+
+</PreferenceScreen>
diff --git a/res/xml/preferences_media.xml b/res/xml/preferences_media.xml
new file mode 100644
index 0000000..99bd1f9
--- /dev/null
+++ b/res/xml/preferences_media.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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">
+
+ <!-- Settings -->
+ <PreferenceCategory
+ android:key="category_refresh"
+ android:title="@string/pref_media_settings">
+
+ <!-- Refresh Interval -->
+ <ListPreference
+ android:key="ui_media_refresh_interval"
+ android:title="@string/pref_media_settings_refresh_interval"
+ android:persistent="true"
+ android:entries="@array/refresh_intervals_labels"
+ android:entryValues="@array/refresh_intervals_values"
+ android:defaultValue="0" />
+
+ <!-- Refresh now -->
+ <Preference
+ android:key="ui_media_refresh_now"
+ android:title="@string/pref_media_settings_refresh_now"
+ android:summary="@string/pref_media_settings_refresh_now_summary"
+ android:persistent="false" />
+
+ </PreferenceCategory>
+
+ <!-- Pictures -->
+ <PreferenceCategory
+ android:key="category_pictures"
+ android:title="@string/pref_media_pictures">
+
+ <!-- Refresh now -->
+ <Preference
+ android:key="ui_media_albums"
+ android:title="@string/pref_media_albums"
+ android:summary="@string/pref_media_albums_summary"
+ android:fragment="org.cyanogenmod.wallpapers.photophase.preferences.ChoosePicturesFragment"
+ android:persistent="false" />
+
+ </PreferenceCategory>
+
+</PreferenceScreen>
diff --git a/res/xml/wallpaper.xml b/res/xml/wallpaper.xml
new file mode 100644
index 0000000..006d9e9
--- /dev/null
+++ b/res/xml/wallpaper.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+ -->
+
+<wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
+ android:thumbnail="@drawable/ic_launcher"
+ android:description="@string/app_description"
+ android:settingsActivity="org.cyanogenmod.wallpapers.photophase.preferences.PhotoPhasePreferences" /> \ No newline at end of file