Skip to content

Instantly share code, notes, and snippets.

@leonguyen
Last active December 16, 2015 08:59
Show Gist options
  • Select an option

  • Save leonguyen/5409597 to your computer and use it in GitHub Desktop.

Select an option

Save leonguyen/5409597 to your computer and use it in GitHub Desktop.
Android Lab: Shared References - Reference Activity - Defining Preference XML
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<PreferenceCategory android:title="Store" >
<ListPreference
android:entries="@array/listStore"
android:entryValues="@array/listStoreReturn"
android:key="prefStore"
android:title="Where do you want to store?" />
</PreferenceCategory>
<PreferenceCategory android:title="Type" >
<ListPreference
android:entries="@array/listType"
android:entryValues="@array/listTypeReturn"
android:key="prefType"
android:title="What type of database?" />
</PreferenceCategory>
</PreferenceScreen>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment