Mostly split the interface to use the database
[Sunshine.git] / app / src / main / res / xml / pref_general.xml
1 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
2 android:layout_width="match_parent"
3 android:layout_height="match_parent"
4 >
5
6 <!-- NOTE: EditTextPreference accepts EditText attributes. -->
7 <!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. -->
8 <EditTextPreference
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" />
15
16 <!-- NOTE: Hide buttons to simplify the UI. Users can touch outside the dialog to
17 dismiss it. -->
18 <!-- NOTE: ListPreference's summary should be set to its value by the activity code. -->
19 <ListPreference
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" />
25
26 </PreferenceScreen>