OSDN Git Service

create eclipse project
[androtinyapps/TinyLock.git] / TinyLock / res / xml / pref_general.xml
1 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
2
3     <CheckBoxPreference
4         android:defaultValue="true"
5         android:key="example_checkbox"
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     <!--
22          NOTE: Hide buttons to simplify the UI. Users can touch outside the dialog to
23          dismiss it.
24     -->
25     <!-- NOTE: ListPreference's summary should be set to its value by the activity code. -->
26     <ListPreference
27         android:defaultValue="-1"
28         android:entries="@array/pref_example_list_titles"
29         android:entryValues="@array/pref_example_list_values"
30         android:key="example_list"
31         android:negativeButtonText="@null"
32         android:positiveButtonText="@null"
33         android:title="@string/pref_title_add_friends_to_messages" />
34
35 </PreferenceScreen>