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">
 5        <CheckBoxPreference
 6            android:key="trust_unknown_tls_certificates"
 7            android:title="Trust TLS certificates"
 8            android:summary="Accounts with untrusted certificates simply will not connect to server"
 9            />
10        <ListPreference
11            android:key="default_conversation_encryption_type"
12            android:title="Default conversation encryption"
13            android:dialogTitle="Default conversation encryption"
14            android:entries="@array/conversation_encryption_type_entries"
15            android:entryValues="@array/conversation_encryption_type_values"
16            android:defaultValue="pgp"/>
17    </PreferenceCategory>
18    <PreferenceCategory 
19        android:title="Notification settings">
20        <CheckBoxPreference 
21            android:key="show_notification"
22            android:title="Notification"
23            android:summary="Show notification in status bar when a new message arrives"
24            />
25        <CheckBoxPreference
26            android:key="vibrate_on_notification"
27            android:dependency="show_notification"
28            android:title="Vibrate"
29            android:summary="Also vibrate when a new message arrives"/>
30        <RingtonePreference 
31            android:key="notification_ringtone"
32            android:title="Sound"
33            android:ringtoneType="notification"
34            android:dependency="show_notification"
35            android:summary="Play ringtone with notification"/>
36    </PreferenceCategory>
37    <PreferenceCategory 
38        android:title="Advanced settings">
39        
40    </PreferenceCategory>
41</PreferenceScreen>