Skip to content

Instantly share code, notes, and snippets.

@ec84b4
Created September 2, 2013 16:30
Show Gist options
  • Select an option

  • Save ec84b4/6414723 to your computer and use it in GitHub Desktop.

Select an option

Save ec84b4/6414723 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:layout_height="match_parent" android:layout_width="match_parent" xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="General" android:key="generalCat">
<ListPreference
android:title="Search Method"
android:key="searchMethod"
android:defaultValue="wordsAndMeanings"
android:entries="@array/searchMethodItems"
android:entryValues="@array/searchMethodValues" />
<ListPreference
android:title="Showing Time Method"
android:key="timeMethod"
android:defaultValue="distance"
android:entries="@array/timeMethodItems"
android:entryValues="@array/timeMethodValues" />
<ListPreference
android:title="Default Sort Method"
android:key="sortMethod"
android:defaultValue="date"
android:entries="@array/sortMethodItems"
android:entryValues="@array/sortMethodValues" />
<CheckBoxPreference
android:title = "Show the number"
android:key="showItemNumber"
android:summary="whether show the item's number in the list or not"
android:defaultValue="true"/>
<CheckBoxPreference
android:title = "Show the meaning "
android:key="showItemMeaning"
android:summary="whether show the item's meaning in the list or not"
android:defaultValue="true"/>
<Preference android:title="Tags" >
<intent android:action="ir.khaled.mydictionary.TagsActivity" />
</Preference>
</PreferenceCategory>
<PreferenceCategory android:title="Leitner Packages" android:key="packageCat">
<ListPreference
android:title="Package"
android:key="package"
android:defaultValue="package504.db"
android:entries="@array/packages"
android:entryValues="@array/packagesValues"
/>
<ListPreference
android:title="Add per day"
android:summary="choose how many cards be added per day"
android:key="addPerDay"
android:defaultValue="s10"
android:entries="@array/addPerDayItems"
android:entryValues="@array/addPerDayValues" />
</PreferenceCategory>
<PreferenceCategory android:title="More" android:key="more">
<Preference android:title="Backup" >
<intent android:action="ir.khaled.mydictionary.Backup" />
</Preference>
<Preference android:title="About" >
<intent android:action="ir.khaled.mydictionary.AboutActivity" />
</Preference>
</PreferenceCategory>
<!--<PreferenceCategory-->
<!--android:title="Second Category">-->
<!--<EditTextPreference-->
<!--android:name="EditText Preference"-->
<!--android:summary="This allows you to enter a string"-->
<!--android:defaultValue="Nothing"-->
<!--android:title="Edit This Text"-->
<!--android:key="editTextPref" />-->
<!--<RingtonePreference-->
<!--android:name="Ringtone Preference"-->
<!--android:summary="Select a ringtone"-->
<!--android:title="Ringtones"-->
<!--android:key="ringtonePref" />-->
<!--<PreferenceScreen-->
<!--android:key="SecondPrefScreen"-->
<!--android:title="Second PreferenceScreen"-->
<!--android:summary="This is a second PreferenceScreen">-->
<!--<EditTextPreference-->
<!--android:name="An other EditText Preference"-->
<!--android:summary="This is a preference in the second PreferenceScreen"-->
<!--android:title="Edit text"-->
<!--android:key="SecondEditTextPref" />-->
<!--</PreferenceScreen>-->
<!--<Preference-->
<!--android:title="Custom Preference"-->
<!--android:summary="This works almost like a button"-->
<!--android:key="customPref" />-->
<!--</PreferenceCategory>-->
</PreferenceScreen>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment