Rev 6 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6 | Rev 7 | ||
---|---|---|---|
1 | <?xml version="1.0" encoding="utf-8"?>
|
1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | <!-- Copyright (C) 2008 The Android Open Source Project
|
2 | <!-- Copyright (C) 2008 The Android Open Source Project
|
3 | 3 | ||
4 | Licensed under the Apache License, Version 2.0 (the "License");
|
4 | Licensed under the Apache License, Version 2.0 (the "License");
|
5 | you may not use this file except in compliance with the License.
|
5 | you may not use this file except in compliance with the License.
|
6 | You may obtain a copy of the License at
|
6 | You may obtain a copy of the License at
|
7 | 7 | ||
8 | http://www.apache.org/licenses/LICENSE-2.0
|
8 | http://www.apache.org/licenses/LICENSE-2.0
|
9 | 9 | ||
10 | Unless required by applicable law or agreed to in writing, software
|
10 | Unless required by applicable law or agreed to in writing, software
|
11 | distributed under the License is distributed on an "AS IS" BASIS,
|
11 | distributed under the License is distributed on an "AS IS" BASIS,
|
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 | See the License for the specific language governing permissions and
|
13 | See the License for the specific language governing permissions and
|
14 | limitations under the License.
|
14 | limitations under the License.
|
15 | -->
|
15 | -->
|
16 | 16 | ||
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>
|
45 | 25 |