preferences.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
 3    <PreferenceCategory 
 4        android:title="General">
 5        <CheckBoxPreference 
 6            android:key="grant_new_contacts"
 7            android:title="Grant presence updates"
 8            android:summary="Preemptively grant and ask for presence subscription for contacts you created"
 9            android:defaultValue="true"
10            />
11        <ListPreference 
12            android:key="resource"
13            android:title="XMPP Resource"
14            android:summary="The name this client identifies itself"
15            android:entries="@array/resources"
16            android:entryValues="@array/resources"
17            android:defaultValue="Mobile"/>
18    </PreferenceCategory>
19    <PreferenceCategory 
20        android:title="Notification Settings">
21        <CheckBoxPreference 
22            android:key="show_notification"
23            android:title="Notification"
24            android:summary="Notify when a new message arrives"
25            android:defaultValue="true"
26            />
27        <CheckBoxPreference
28            android:key="vibrate_on_notification"
29            android:dependency="show_notification"
30            android:title="Vibrate"
31            android:summary="Also vibrate when a new message arrives"
32            android:defaultValue="true"/>
33        <RingtonePreference 
34            android:key="notification_ringtone"
35            android:title="Sound"
36            android:ringtoneType="notification"
37            android:dependency="show_notification"
38            android:summary="Play ringtone with notification"
39            android:defaultValue="content://settings/system/notification_sound"/>
40        <CheckBoxPreference 
41            android:key="notify_in_conversation_when_highlighted"
42            android:title="Conference notification"
43            android:summary="Always notify when a new conference message arrives instead of only when highlighted"/>
44    </PreferenceCategory>
45    <PreferenceCategory 
46        android:title="UI Options">
47        <CheckBoxPreference 
48            android:key="show_phone_selfcontact_picture"
49            android:title="Use Phones self contact picture"
50            android:summary="You may no longer be able to distinguish which account you are using in a conversation"
51            android:defaultValue="true"/>
52        <CheckBoxPreference 
53            android:key="use_subject_in_muc"
54            android:title="Conference Name"
55            android:summary="Use room’s subject to identify Conferences"
56            android:defaultValue="true"/>
57    </PreferenceCategory>
58    <PreferenceCategory
59        android:title="Advanced Options">
60        <CheckBoxPreference 
61            android:key="never_send"
62            android:title="Never send crash reports"
63            android:summary="By sending in stack traces you are helping the ongoing development of Conversations"
64            android:defaultValue="false"/>
65    </PreferenceCategory>
66</PreferenceScreen>