1 <PreferenceScreen xmlns:
android=
"http://schemas.android.com/apk/res/android"
2 android:
layout_width=
"match_parent"
3 android:
layout_height=
"match_parent"
6 <!-- NOTE: EditTextPreference accepts EditText attributes. -->
7 <!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. -->
9 android:
key=
"@string/pref_location_key"
10 android:
title=
"@string/pref_location_label"
11 android:
defaultValue=
"@string/pref_location_default"
12 android:
selectAllOnFocus=
"true"
13 android:
singleLine=
"true"
14 android:
maxLines=
"1" />
16 <!-- NOTE: Hide buttons to simplify the UI. Users can touch outside the dialog to
18 <!-- NOTE: ListPreference's summary should be set to its value by the activity code. -->
20 android:
title=
"@string/pref_units_label"
21 android:
key=
"@string/pref_units_key"
22 android:
defaultValue=
"@string/pref_units_metric"
23 android:
entryValues=
"@array/pref_units_values"
24 android:
entries=
"@array/pref_units_options" />