aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Zelent <zelent.marcin@gmail.com>2018-03-29 15:58:03 +0200
committerMarcin Zelent <zelent.marcin@gmail.com>2018-03-29 15:58:03 +0200
commit14e6b8b0171601c7392d13c4c79e38c2e55df928 (patch)
tree837d4fbe59f9723ffcd9deccaaec60d3bbdd4725 /app/src/main/res/xml/pref_data_sync.xml
parentffd565bf02a180a249f361b29395f716c0ac2b40 (diff)
Added fragments
Diffstat (limited to 'app/src/main/res/xml/pref_data_sync.xml')
-rw-r--r--app/src/main/res/xml/pref_data_sync.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/src/main/res/xml/pref_data_sync.xml b/app/src/main/res/xml/pref_data_sync.xml
new file mode 100644
index 0000000..6bd9192
--- /dev/null
+++ b/app/src/main/res/xml/pref_data_sync.xml
@@ -0,0 +1,21 @@
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <!-- NOTE: Hide buttons to simplify the UI. Users can touch outside the dialog to
+ dismiss it. -->
+ <!-- NOTE: ListPreference's summary should be set to its value by the activity code. -->
+ <ListPreference
+ android:defaultValue="180"
+ android:entries="@array/pref_sync_frequency_titles"
+ android:entryValues="@array/pref_sync_frequency_values"
+ android:key="sync_frequency"
+ android:negativeButtonText="@null"
+ android:positiveButtonText="@null"
+ android:title="@string/pref_title_sync_frequency" />
+
+ <!-- This preference simply launches an intent when selected. Use this UI sparingly, per
+ design guidelines. -->
+ <Preference android:title="@string/pref_title_system_sync_settings">
+ <intent android:action="android.settings.SYNC_SETTINGS" />
+ </Preference>
+
+</PreferenceScreen>