|
1 | 1 | <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" |
2 | 2 | xmlns:app="http://schemas.android.com/apk/res-auto"> |
3 | | - <PreferenceCategory android:title="Material Preferences"> |
4 | | - <com.lb.material_preferences_library.custom_preferences.Preference |
5 | | - android:summary="just some summary text" |
6 | | - android:title="A simple Preference"/> |
| 3 | + <PreferenceCategory android:title="Material Preferences"> |
| 4 | + <com.lb.material_preferences_library.custom_preferences.Preference |
| 5 | + android:summary="just some summary text" |
| 6 | + android:title="A simple Preference"/> |
7 | 7 |
|
8 | | - <!--Note: for icons, you need to use this : app:icon="..." --> |
| 8 | + <!--Note: for icons, you need to use this : app:icon="..." , example: app:icon="@android:drawable/sym_def_app_icon" --> |
9 | 9 |
|
10 | | - <com.lb.material_preferences_library.custom_preferences.ListPreference |
11 | | - android:defaultValue="dark" |
12 | | - android:key="@string/pref_theme" |
13 | | - android:summary="%s" |
14 | | - android:title="Theme" |
15 | | - app:dialogTitle="dialog title" |
16 | | - app:entries="@array/pref_theme_list_entries" |
17 | | - app:entryValues="@array/pref_theme_list_values"/> |
| 10 | + <com.lb.material_preferences_library.custom_preferences.ListPreference |
| 11 | + android:defaultValue="dark" |
| 12 | + android:key="@string/pref_theme" |
| 13 | + android:summary="%s" |
| 14 | + android:title="Theme" |
| 15 | + app:dialogTitle="dialog title" |
| 16 | + app:entries="@array/pref_theme_list_entries" |
| 17 | + app:entryValues="@array/pref_theme_list_values"/> |
18 | 18 |
|
19 | | - <com.lb.material_preferences_library.custom_preferences.EditTextPreference |
20 | | - android:capitalize="words" |
21 | | - android:defaultValue="EditTextPreference default value" |
22 | | - android:inputType="textCapWords" |
23 | | - android:key="custom_example_edittext" |
24 | | - android:maxLines="1" |
25 | | - android:selectAllOnFocus="true" |
26 | | - android:singleLine="true" |
27 | | - android:summary="EditTextPreference summary" |
28 | | - android:title="EditTextPreference title" |
29 | | - app:dialogMessage="editText dialogMessage" |
30 | | - app:negativeButtonText="@android:string/cancel" |
31 | | - app:positiveButtonText="@android:string/ok"/> |
| 19 | + <com.lb.material_preferences_library.custom_preferences.EditTextPreference |
| 20 | + android:capitalize="words" |
| 21 | + android:defaultValue="EditTextPreference default value" |
| 22 | + android:inputType="textCapWords" |
| 23 | + android:key="custom_example_edittext" |
| 24 | + android:maxLines="1" |
| 25 | + android:selectAllOnFocus="true" |
| 26 | + android:singleLine="true" |
| 27 | + android:summary="EditTextPreference summary" |
| 28 | + android:title="EditTextPreference title" |
| 29 | + app:dialogMessage="editText dialogMessage" |
| 30 | + app:negativeButtonText="@android:string/cancel" |
| 31 | + app:positiveButtonText="@android:string/ok"/> |
32 | 32 |
|
33 | | - <com.lb.material_preferences_library.custom_preferences.NumberEditTextPreference |
34 | | - android:capitalize="words" |
35 | | - android:defaultValue="123" |
36 | | - android:inputType="textCapWords" |
37 | | - android:key="custom_example_numberedittext" |
38 | | - android:maxLines="1" |
39 | | - android:selectAllOnFocus="true" |
40 | | - android:singleLine="true" |
41 | | - android:summary="Like EditTextPreference, but allows only numbers to be used" |
42 | | - android:title="NumberEditTextPreference title" |
43 | | - app:dialogMessage="NumberEditTextPreference dialogMessage" |
44 | | - app:negativeButtonText="@android:string/cancel" |
45 | | - app:positiveButtonText="@android:string/ok"/> |
| 33 | + <com.lb.material_preferences_library.custom_preferences.NumberEditTextPreference |
| 34 | + android:capitalize="words" |
| 35 | + android:defaultValue="123" |
| 36 | + android:inputType="textCapWords" |
| 37 | + android:key="custom_example_numberedittext" |
| 38 | + android:maxLines="1" |
| 39 | + android:selectAllOnFocus="true" |
| 40 | + android:singleLine="true" |
| 41 | + android:summary="Like EditTextPreference, but allows only numbers to be used" |
| 42 | + android:title="NumberEditTextPreference title" |
| 43 | + app:dialogMessage="NumberEditTextPreference dialogMessage" |
| 44 | + app:negativeButtonText="@android:string/cancel" |
| 45 | + app:positiveButtonText="@android:string/ok"/> |
46 | 46 |
|
47 | | - <!--<com.lb.material_preferences_library.custom_preferences.SwitchPreference--> |
48 | | - <!--android:defaultValue="true"--> |
49 | | - <!--android:key="switchPref"--> |
50 | | - <!--android:title="SwitchPreference title"--> |
51 | | - <!--app:summaryOff="summaryOff"--> |
52 | | - <!--app:summaryOn="summaryOn"/>--> |
| 47 | + <!--<com.lb.material_preferences_library.custom_preferences.SwitchPreference--> |
| 48 | + <!--android:defaultValue="true"--> |
| 49 | + <!--android:key="switchPref"--> |
| 50 | + <!--android:title="SwitchPreference title"--> |
| 51 | + <!--app:summaryOff="summaryOff"--> |
| 52 | + <!--app:summaryOn="summaryOn"/>--> |
53 | 53 |
|
54 | | - <com.lb.material_preferences_library.custom_preferences.CheckBoxPreference |
55 | | - android:defaultValue="true" |
56 | | - android:key="checkboxPref" |
57 | | - android:summary="CheckBoxPreference summary" |
58 | | - android:title="CheckBoxPreference title" |
59 | | - /> |
60 | | - </PreferenceCategory> |
| 54 | + <com.lb.material_preferences_library.custom_preferences.CheckBoxPreference |
| 55 | + android:defaultValue="true" |
| 56 | + android:key="checkboxPref" |
| 57 | + android:summary="CheckBoxPreference summary" |
| 58 | + android:title="CheckBoxPreference title" |
| 59 | + /> |
| 60 | + </PreferenceCategory> |
61 | 61 |
|
62 | | - <PreferenceCategory |
63 | | - android:title="Native Preferences"> |
64 | | - <!--<SwitchPreference--> |
65 | | - <!--android:summary="just some summary text"--> |
66 | | - <!--android:title="switch"/>--> |
67 | | - <Preference |
68 | | - android:summary="just some summary text" |
69 | | - android:title="A simple Preference"/> |
70 | | - <CheckBoxPreference |
71 | | - android:defaultValue="true" |
72 | | - android:key="example_checkbox" |
73 | | - android:summary="CheckBoxPreference summary" |
74 | | - android:title="CheckBoxPreference title"/> |
| 62 | + <PreferenceCategory |
| 63 | + android:title="Native Preferences"> |
| 64 | + <!--<SwitchPreference--> |
| 65 | + <!--android:summary="just some summary text"--> |
| 66 | + <!--android:title="switch"/>--> |
| 67 | + <Preference |
| 68 | + android:summary="just some summary text" |
| 69 | + android:title="A simple Preference"/> |
| 70 | + <CheckBoxPreference |
| 71 | + android:defaultValue="true" |
| 72 | + android:key="example_checkbox" |
| 73 | + android:summary="CheckBoxPreference summary" |
| 74 | + android:title="CheckBoxPreference title"/> |
75 | 75 |
|
76 | | - <EditTextPreference |
77 | | - android:capitalize="words" |
78 | | - android:defaultValue="EditTextPreference default value" |
79 | | - android:dialogMessage="editText dialogMessage" |
80 | | - android:inputType="textCapWords" |
81 | | - android:key="custom_example_edittext" |
82 | | - android:maxLines="1" |
83 | | - android:negativeButtonText="@android:string/cancel" |
84 | | - android:positiveButtonText="@android:string/ok" |
85 | | - android:selectAllOnFocus="true" |
86 | | - android:singleLine="true" |
87 | | - android:summary="EditTextPreference summary" |
88 | | - android:title="EditTextPreference title"/> |
| 76 | + <EditTextPreference |
| 77 | + android:capitalize="words" |
| 78 | + android:defaultValue="EditTextPreference default value" |
| 79 | + android:dialogMessage="editText dialogMessage" |
| 80 | + android:inputType="textCapWords" |
| 81 | + android:key="custom_example_edittext" |
| 82 | + android:maxLines="1" |
| 83 | + android:negativeButtonText="@android:string/cancel" |
| 84 | + android:positiveButtonText="@android:string/ok" |
| 85 | + android:selectAllOnFocus="true" |
| 86 | + android:singleLine="true" |
| 87 | + android:summary="EditTextPreference summary" |
| 88 | + android:title="EditTextPreference title"/> |
89 | 89 |
|
90 | | - <ListPreference |
91 | | - android:defaultValue="item1" |
92 | | - android:dialogTitle="dialog title" |
93 | | - android:entries="@array/pref_example_list_entries" |
94 | | - android:entryValues="@array/pref_example_list_values" |
95 | | - android:key="example_list" |
96 | | - android:negativeButtonText="@null" |
97 | | - android:positiveButtonText="@null" |
98 | | - android:summary="%s" |
99 | | - android:title="ListPreference title"/> |
| 90 | + <ListPreference |
| 91 | + android:defaultValue="item1" |
| 92 | + android:dialogTitle="dialog title" |
| 93 | + android:entries="@array/pref_example_list_entries" |
| 94 | + android:entryValues="@array/pref_example_list_values" |
| 95 | + android:key="example_list" |
| 96 | + android:negativeButtonText="@null" |
| 97 | + android:positiveButtonText="@null" |
| 98 | + android:summary="%s" |
| 99 | + android:title="ListPreference title"/> |
100 | 100 |
|
101 | | - </PreferenceCategory> |
| 101 | + </PreferenceCategory> |
102 | 102 |
|
103 | 103 |
|
104 | 104 | </PreferenceScreen> |
0 commit comments