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="Security and Privacy Options">
 5        <ListPreference
 6            android:key="default_conversation_encryption_type"
 7            android:title="Default conversation encryption"
 8            android:dialogTitle="Default conversation encryption"
 9            android:entries="@array/conversation_encryption_type_entries"
10            android:entryValues="@array/conversation_encryption_type_values"
11            android:defaultValue="none"/>
12        <CheckBoxPreference 
13            android:key="grant_new_contacts"
14            android:title="Grant presence updates"
15            android:summary="Preemptivly grant and ask for presence subscription for contacts you created"
16            android:defaultValue="true"
17            />
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</PreferenceScreen>