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          <PreferenceScreen
 39            android:dependency="show_notification"
 40            android:summary="@string/pref_quiet_hours_summary"
 41            android:title="@string/title_pref_quiet_hours">
 42            <CheckBoxPreference
 43              android:defaultValue="false"
 44              android:key="enable_quiet_hours"
 45              android:summary="@string/pref_quiet_hours_summary"
 46              android:title="@string/title_pref_enable_quiet_hours" />
 47            <eu.siacs.conversations.ui.TimePreference
 48              android:dependency="enable_quiet_hours"
 49              android:key="quiet_hours_start"
 50              android:negativeButtonText="@string/cancel"
 51              android:positiveButtonText="@string/set"
 52              android:title="@string/title_pref_quiet_hours_start_time" />
 53            <eu.siacs.conversations.ui.TimePreference
 54              android:dependency="enable_quiet_hours"
 55              android:key="quiet_hours_end"
 56              android:negativeButtonText="@string/cancel"
 57              android:positiveButtonText="@string/set"
 58              android:title="@string/title_pref_quiet_hours_end_time" />
 59          </PreferenceScreen>
 60          <CheckBoxPreference
 61            android:defaultValue="true"
 62            android:dependency="show_notification"
 63            android:key="vibrate_on_notification"
 64            android:summary="@string/pref_vibrate_summary"
 65            android:title="@string/pref_vibrate" />
 66
 67        <RingtonePreference
 68            android:defaultValue="content://settings/system/notification_sound"
 69            android:dependency="show_notification"
 70            android:key="notification_ringtone"
 71            android:ringtoneType="notification"
 72            android:summary="@string/pref_sound_summary"
 73            android:title="@string/pref_sound" />
 74
 75        <CheckBoxPreference
 76            android:defaultValue="true"
 77            android:dependency="show_notification"
 78            android:key="always_notify_in_conference"
 79            android:summary="@string/pref_conference_notifications_summary"
 80            android:title="@string/pref_conference_notifications" />
 81    </PreferenceCategory>
 82    <PreferenceCategory android:title="@string/pref_ui_options" >
 83        <CheckBoxPreference
 84            android:defaultValue="true"
 85            android:key="use_subject"
 86            android:summary="@string/pref_conference_name_summary"
 87            android:title="@string/pref_conference_name" />
 88        <CheckBoxPreference
 89            android:defaultValue="false"
 90            android:key="use_larger_font"
 91            android:summary="@string/pref_use_larger_font_summary"
 92            android:title="@string/pref_use_larger_font" />
 93        <CheckBoxPreference
 94            android:defaultValue="false"
 95            android:key="send_button_status"
 96            android:summary="@string/pref_use_send_button_to_indicate_status_summary"
 97            android:title="@string/pref_use_send_button_to_indicate_status" />
 98        <CheckBoxPreference
 99            android:defaultValue="false"
100            android:key="show_dynamic_tags"
101            android:summary="@string/pref_show_dynamic_tags_summary"
102            android:title="@string/pref_show_dynamic_tags" />
103    </PreferenceCategory>
104    <PreferenceCategory android:title="@string/pref_advanced_options" >
105        <PreferenceScreen
106            android:summary="@string/pref_expert_options_summary"
107            android:title="@string/pref_expert_options" >
108            <PreferenceCategory android:title="@string/pref_encryption_settings" >
109                <CheckBoxPreference
110                    android:defaultValue="false"
111                    android:key="force_encryption"
112                    android:summary="@string/pref_force_encryption_summary"
113                    android:title="@string/pref_force_encryption" />
114                <CheckBoxPreference
115                    android:defaultValue="false"
116                    android:key="dont_save_encrypted"
117                    android:summary="@string/pref_dont_save_encrypted_summary"
118                    android:title="@string/pref_dont_save_encrypted" />
119            </PreferenceCategory>
120	        <PreferenceCategory android:title="@string/pref_input_options">
121		        <CheckBoxPreference
122			        android:defaultValue="false"
123			        android:key="enter_is_send"
124			        android:title="@string/pref_enter_is_send"
125			        android:summary="@string/pref_enter_is_send_summary" />
126		        <CheckBoxPreference
127			        android:defaultValue="false"
128			        android:key="display_enter_key"
129			        android:title="@string/pref_display_enter_key"
130			        android:summary="@string/pref_display_enter_key_summary" />
131	        </PreferenceCategory>
132            <PreferenceCategory android:title="@string/pref_expert_options_other" >
133                <CheckBoxPreference
134                    android:defaultValue="false"
135                    android:key="indicate_received"
136                    android:summary="@string/pref_use_indicate_received_summary"
137                    android:title="@string/pref_use_indicate_received" />
138                <CheckBoxPreference
139                    android:defaultValue="false"
140                    android:key="keep_foreground_service"
141                    android:title="@string/pref_keep_foreground_service"
142                    android:summary="@string/pref_keep_foreground_service_summary" />
143            </PreferenceCategory>
144        </PreferenceScreen>
145
146        <CheckBoxPreference
147            android:defaultValue="false"
148            android:key="never_send"
149            android:summary="@string/pref_never_send_crash_summary"
150            android:title="@string/pref_never_send_crash" />
151    </PreferenceCategory>
152		<eu.siacs.conversations.ui.AboutPreference
153			android:summary="@string/pref_about_conversations_summary"
154			android:title="@string/title_activity_about" />
155</PreferenceScreen>