Subversion Repositories ES

Rev

Rev 6 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 7
Line 17... Line 17...
17
<!-- This is a primitive example showing how to set default values for preferences.
17
<!-- This is a primitive example showing how to set default values for preferences.
18
     See DefaultValues.java for more information. -->
18
     See DefaultValues.java for more information. -->
19
<PreferenceScreen
19
<PreferenceScreen
20
        xmlns:android="http://schemas.android.com/apk/res/android">
20
        xmlns:android="http://schemas.android.com/apk/res/android">
21
21
22
    <CheckBoxPreference
-
 
23
            android:key="default_toggle"
-
 
24
            android:defaultValue="true"
-
 
25
            android:title="@string/title_checkbox_preference"
-
 
26
            android:summary="@string/summary_checkbox_preference" />
-
 
27
22
28
    <EditTextPreference
-
 
29
            android:key="default_edittext"
-
 
30
            android:defaultValue="@string/default_value_edittext_preference"
-
 
31
            android:title="@string/title_edittext_preference"
-
 
32
            android:summary="@string/summary_edittext_preference"
-
 
33
            android:dialogTitle="@string/dialog_title_edittext_preference" />
-
 
34
           
-
 
35
    <ListPreference
-
 
36
            android:key="default_list"
-
 
37
            android:defaultValue="@string/default_value_list_preference"
-
 
38
            android:title="@string/title_list_preference"
-
 
39
            android:summary="@string/summary_list_preference"
-
 
40
            android:entries="@array/entries_list_preference"
-
 
41
            android:entryValues="@array/entryvalues_list_preference"
-
 
42
            android:dialogTitle="@string/dialog_title_list_preference" />
-
 
43
23
44
</PreferenceScreen>
24
</PreferenceScreen>