preferences.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
 3
 4    <PreferenceCategory android:title="@string/pref_general" >
 5        <CheckBoxPreference
 6            android:defaultValue="true"
 7            android:key="grant_new_contacts"
 8            android:summary="@string/pref_grant_presence_updates_summary"
 9            android:title="@string/pref_grant_presence_updates" />
10
11        <ListPreference
12            android:defaultValue="Mobile"
13            android:entries="@array/resources"
14            android:entryValues="@array/resources"
15            android:key="resource"
16            android:summary="@string/pref_xmpp_resource_summary"
17            android:title="@string/pref_xmpp_resource" />
18        <ListPreference
19            android:defaultValue="524288"
20            android:entries="@array/filesizes"
21            android:entryValues="@array/filesizes_values"
22            android:key="auto_accept_file_size"
23            android:summary="@string/pref_accept_files_summary"
24            android:title="@string/pref_accept_files" />
25
26        <CheckBoxPreference
27            android:defaultValue="true"
28            android:key="confirm_messages"
29            android:summary="@string/pref_confirm_messages_summary"
30            android:title="@string/pref_confirm_messages" />
31    </PreferenceCategory>
32    <PreferenceCategory android:title="@string/pref_notification_settings" >
33        <CheckBoxPreference
34            android:defaultValue="true"
35            android:key="show_notification"
36            android:summary="@string/pref_notifications_summary"
37            android:title="@string/pref_notifications" />
38        <CheckBoxPreference
39            android:defaultValue="true"
40            android:dependency="show_notification"
41            android:key="vibrate_on_notification"
42            android:summary="@string/pref_vibrate_summary"
43            android:title="@string/pref_vibrate" />
44
45        <RingtonePreference
46            android:defaultValue="content://settings/system/notification_sound"
47            android:dependency="show_notification"
48            android:key="notification_ringtone"
49            android:ringtoneType="notification"
50            android:summary="@string/pref_sound_summary"
51            android:title="@string/pref_sound" />
52
53        <CheckBoxPreference
54            android:dependency="show_notification"
55            android:key="notify_in_conversation_when_highlighted"
56            android:summary="@string/pref_conference_notifications_summary"
57            android:title="@string/pref_conference_notifications" />
58        <CheckBoxPreference
59            android:defaultValue="true"
60            android:dependency="show_notification"
61            android:key="notification_grace_period_after_carbon_received"
62            android:summary="@string/pref_notification_grace_period_summary"
63            android:title="@string/pref_notification_grace_period" />
64    </PreferenceCategory>
65    <PreferenceCategory
66        android:title="@string/pref_ui_options">
67    <CheckBoxPreference
68            android:defaultValue="false"
69            android:key="use_larger_font"
70            android:title="@string/pref_use_larger_font"
71            android:summary="@string/pref_use_larger_font_summary"/>
72    </PreferenceCategory>
73    <PreferenceCategory android:title="@string/pref_advanced_options" >
74        <PreferenceScreen
75            android:summary="@string/pref_expert_options_summary"
76            android:title="@string/pref_expert_options" >
77            <PreferenceCategory android:title="@string/pref_encryption_settings" >
78                <CheckBoxPreference
79                    android:defaultValue="false"
80                    android:key="force_encryption"
81                    android:summary="@string/pref_force_encryption_summary"
82                    android:title="@string/pref_force_encryption" />
83                <CheckBoxPreference
84                    android:defaultValue="false"
85                    android:key="dont_save_encrypted"
86                    android:summary="@string/pref_dont_save_encrypted_summary"
87                    android:title="@string/pref_dont_save_encrypted" />
88            </PreferenceCategory>
89        </PreferenceScreen>
90
91        <CheckBoxPreference
92            android:defaultValue="false"
93            android:key="never_send"
94            android:summary="@string/pref_never_send_crash_summary"
95            android:title="@string/pref_never_send_crash" />
96    </PreferenceCategory>
97
98</PreferenceScreen>