Home | History | Annotate | Download | only in xml
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <PreferenceScreen
      3     xmlns:android="http://schemas.android.com/apk/res/android">
      4 
      5   <PreferenceCategory
      6       android:key="category"
      7       android:title="Category Test">
      8 
      9     <Preference
     10         android:key="inside_category"
     11         android:title="Inside Category Test"
     12         android:summary=""/>
     13 
     14   </PreferenceCategory>
     15 
     16   <PreferenceScreen
     17       android:key="screen"
     18       android:title="Screen Test"
     19       android:summary="Screen summary">
     20 
     21     <Preference
     22         android:key="inside_screen"
     23         android:title="Inside Screen Test"
     24         android:summary=""/>
     25 
     26     <Preference
     27         android:key="inside_screen_dependent"
     28         android:title="Inside Screen Dependent Test"
     29         android:dependency="inside_screen"
     30         android:summary=""/>
     31 
     32   </PreferenceScreen>
     33 
     34   <CheckBoxPreference
     35       android:key="checkbox"
     36       android:title="Checkbox Test"
     37       android:summary=""
     38       android:defaultValue="true"/>
     39 
     40   <EditTextPreference
     41       android:key="edit_text"
     42       android:title="EditText Test"
     43       android:summary=""/>
     44 
     45   <ListPreference
     46       android:key="list"
     47       android:title="List Test"
     48       android:summary=""/>
     49 
     50   <Preference
     51       android:key="preference"
     52       android:title="Preference Title"
     53       android:summary=""/>
     54 
     55   <RingtonePreference
     56       android:key="ringtone"
     57       android:title="Ringtone Test"
     58       android:summary=""/>
     59 
     60   <Preference
     61       android:key="@string/preference_resource_key"
     62       android:title="@string/preference_resource_title"
     63       android:summary="@string/preference_resource_summary"/>
     64 
     65   <Preference
     66       android:key="dependant"
     67       android:title="This preference is dependant on something else"
     68       android:summary="Still depending on the preference above"
     69       android:dependency="preference"/>
     70 
     71   <Preference
     72       android:key="intent"
     73       android:title="Intent test"
     74       android:summary="">
     75 
     76     <intent
     77         android:targetPackage="org.robolectric"
     78         android:targetClass="org.robolectric.test.Intent"
     79         android:mimeType="application/text"
     80         android:action="action"
     81         android:data="tel://1235"/>
     82   </Preference>
     83 
     84 </PreferenceScreen>
     85