Grundaufbau der App
[DHBWCampusApp.git] / app / src / main / res / xml / pref_general.xml
1 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
2
3     <SwitchPreference
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" />
8
9     <!-- NOTE: EditTextPreference accepts EditText attributes. -->
10     <!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. -->
11     <EditTextPreference
12         android:capitalize="words"
13         android:defaultValue="@string/pref_default_display_name"
14         android:inputType="textCapWords"
15         android:key="example_text"
16         android:maxLines="1"
17         android:selectAllOnFocus="true"
18         android:singleLine="true"
19         android:title="@string/pref_title_display_name" />
20
21     <!-- NOTE: Hide buttons to simplify the UI. Users can touch outside the dialog to
22          dismiss it. -->
23     <!-- NOTE: ListPreference's summary should be set to its value by the activity code. -->
24     <ListPreference
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" />
32
33 </PreferenceScreen>