Skip to content

Instantly share code, notes, and snippets.

@derohimat
Created April 9, 2016 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derohimat/73afbb103fcf26804dc78d7deade885a to your computer and use it in GitHub Desktop.
Save derohimat/73afbb103fcf26804dc78d7deade885a to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditTextPreference
android:defaultValue="@string/pref_location_default"
android:inputType="text"
android:key="@string/pref_location_key"
android:singleLine="true"
android:title="@string/pref_location_label"/>
<ListPreference
android:defaultValue="@string/pref_units_metric"
android:entries="@array/pref_units_options"
android:entryValues="@array/pref_units_values"
android:key="@string/pref_units_key"
android:title="@string/pref_units_label"/>
</PreferenceScreen>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment