• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
2
3    <!-- NOTE: Hide buttons to simplify the UI. Users can touch outside the dialog to
4         dismiss it. -->
5    <!-- NOTE: ListPreference's summary should be set to its value by the activity code. -->
6    <ListPreference
7        android:key="sync_frequency"
8        android:title="@string/pref_title_sync_frequency"
9        android:entries="@array/pref_sync_frequency_titles"
10        android:entryValues="@array/pref_sync_frequency_values"
11        android:defaultValue="180"
12        android:negativeButtonText="@null"
13        android:positiveButtonText="@null" />
14
15    <!-- This preference simply launches an intent when selected. Use this UI sparingly, per
16         design guidelines. -->
17    <Preference android:title="@string/pref_title_system_sync_settings">
18        <intent android:action="android.settings.SYNC_SETTINGS" />
19    </Preference>
20
21</PreferenceScreen>
22