1 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
4 android:defaultValue="true"
5 android:key="example_switch"
6 android:summary="@string/pref_description_social_recommendations"
7 android:title="@string/pref_title_social_recommendations" />
9 <!-- NOTE: EditTextPreference accepts EditText attributes. -->
10 <!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. -->
12 android:capitalize="words"
13 android:defaultValue="@string/pref_default_display_name"
14 android:inputType="textCapWords"
15 android:key="example_text"
17 android:selectAllOnFocus="true"
18 android:singleLine="true"
19 android:title="@string/pref_title_display_name" />
21 <!-- NOTE: Hide buttons to simplify the UI. Users can touch outside the dialog to
23 <!-- NOTE: ListPreference's summary should be set to its value by the activity code. -->
25 android:defaultValue="-1"
26 android:entries="@array/pref_example_list_titles"
27 android:entryValues="@array/pref_example_list_values"
28 android:key="example_list"
29 android:negativeButtonText="@null"
30 android:positiveButtonText="@null"
31 android:title="@string/pref_title_add_friends_to_messages" />