Last active
December 16, 2015 08:59
-
-
Save leonguyen/5409597 to your computer and use it in GitHub Desktop.
Android Lab: Shared References - Reference Activity - Defining Preference XML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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