res/layout/preferences.xml
author Nikita Kozlov <nikita@mbdsys.com>
Sun, 05 Dec 2010 18:45:47 +0100
changeset 929 6cbb9b3117b7
parent 740 a91db9ddc46f
child 847 ac719bcb0f25
permissions -rwxr-xr-x
merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
404
3c8ca2a1a327 changement de la gestion des settings.
Nikita Kozlov <nikita@beem-project.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
728
13d204a5c6fe Cleanup some preference key
Da Risk <darisk972@gmail.com>
parents: 711
diff changeset
     2
<!-- 
13d204a5c6fe Cleanup some preference key
Da Risk <darisk972@gmail.com>
parents: 711
diff changeset
     3
    The format of the preference key is defined in
13d204a5c6fe Cleanup some preference key
Da Risk <darisk972@gmail.com>
parents: 711
diff changeset
     4
    src/com/beem/project/beem/BeemApplication.java
13d204a5c6fe Cleanup some preference key
Da Risk <darisk972@gmail.com>
parents: 711
diff changeset
     5
    Basically it is just a simple name like account_username.
13d204a5c6fe Cleanup some preference key
Da Risk <darisk972@gmail.com>
parents: 711
diff changeset
     6
    TODO: There is still a lot of keys to convert
13d204a5c6fe Cleanup some preference key
Da Risk <darisk972@gmail.com>
parents: 711
diff changeset
     7
-->
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
     8
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
     9
	android:shouldDisableView="true" android:selectable="true">
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    10
	<PreferenceCategory android:title="@string/general_preferences">
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    11
		<PreferenceScreen android:key="contact_list"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    12
			android:title="@string/contact_list_preferences" android:summary="@string/contact_list_preferences_sum">
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    13
			<CheckBoxPreference android:title="@string/CLP_hidden_contact"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    14
				android:defaultValue="false" android:summary="@string/CLP_hidden_contact_sum"
496
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
    15
				android:key="settings_key_hidden_contact" />
665
01f3b7160f4b add a hide group options
Nikita Kozlov <nikita@beem-project.com>
parents: 630
diff changeset
    16
			<CheckBoxPreference android:title="@string/CLP_hide_groups"
01f3b7160f4b add a hide group options
Nikita Kozlov <nikita@beem-project.com>
parents: 630
diff changeset
    17
				android:defaultValue="false" android:summary="@string/CLP_hide_groups_sum"
01f3b7160f4b add a hide group options
Nikita Kozlov <nikita@beem-project.com>
parents: 630
diff changeset
    18
				android:key="settings_key_hide_groups" />
678
d1a599ccf879 Adding of an 'Auto-Away' option, there is still some more work/translation to do
nikita@nikita-laptop
parents: 669
diff changeset
    19
			<CheckBoxPreference android:title="@string/away_chk_title"
d1a599ccf879 Adding of an 'Auto-Away' option, there is still some more work/translation to do
nikita@nikita-laptop
parents: 669
diff changeset
    20
				android:defaultValue="true" android:summary="@string/away_chk_sum"
d1a599ccf879 Adding of an 'Auto-Away' option, there is still some more work/translation to do
nikita@nikita-laptop
parents: 669
diff changeset
    21
				android:key="settings_away_chk" />
706
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    22
			<EditTextPreference android:dependency="settings_away_chk"
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    23
				android:singleLine="true" android:summary="@string/away_message_sum"
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    24
				android:title="@string/away_message_title" android:key="settings_away_message"
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    25
				android:hint="@string/away_message_hint" />
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    26
		</PreferenceScreen>
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    27
		<PreferenceScreen android:title="@string/notification_preferences">
740
a91db9ddc46f Fixes a little bug in contactlist activity.
Da Risk <darisk972@gmail.com>
parents: 739
diff changeset
    28
			<CheckBoxPreference android:title="@string/notification_enable_vibrate_title"
a91db9ddc46f Fixes a little bug in contactlist activity.
Da Risk <darisk972@gmail.com>
parents: 739
diff changeset
    29
				android:defaultValue="false" android:summary="@string/notification_enable_vibrate_sum"
a91db9ddc46f Fixes a little bug in contactlist activity.
Da Risk <darisk972@gmail.com>
parents: 739
diff changeset
    30
				android:key="notification_vibrate" />
706
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    31
			<RingtonePreference
740
a91db9ddc46f Fixes a little bug in contactlist activity.
Da Risk <darisk972@gmail.com>
parents: 739
diff changeset
    32
				android:title="@string/notification_snd_title" android:key="notification_sound"
706
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    33
				android:summary="@string/notification_snd_sum" android:ringtoneType="notification"
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    34
				android:showDefault="true" />
496
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
    35
		</PreferenceScreen>
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
    36
	</PreferenceCategory>
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    37
	<PreferenceCategory android:title="@string/user_preferences">
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    38
		<EditTextPreference android:singleLine="true"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    39
			android:summary="@string/SettingsText" android:title="@string/settings_account_username"
728
13d204a5c6fe Cleanup some preference key
Da Risk <darisk972@gmail.com>
parents: 711
diff changeset
    40
			android:key="account_username" android:hint="@string/login_username_info_default"
711
d80ac2c011f8 settings input types tweak
Nikita Kozlov <nikita@beem-project.com>
parents: 706
diff changeset
    41
			android:inputType="textEmailAddress" />
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    42
		<EditTextPreference android:name="password"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    43
			android:singleLine="true" android:password="true" android:summary="@string/SettingsPassword"
728
13d204a5c6fe Cleanup some preference key
Da Risk <darisk972@gmail.com>
parents: 711
diff changeset
    44
			android:title="@string/settings_account_password" android:key="account_password" />
630
dbc66edfd61f add string message on login.
Vincent Veronis <veroni_v@epitech.net>
parents: 628
diff changeset
    45
	</PreferenceCategory>
dbc66edfd61f add string message on login.
Vincent Veronis <veroni_v@epitech.net>
parents: 628
diff changeset
    46
	<PreferenceCategory android:title="@string/user_preferences_advanced">
706
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    47
		<EditTextPreference android:key="settings_key_resource"
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    48
			android:title="@string/SettingsResourceTitle" android:summary="@string/SettingsResourceSummary"
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    49
			android:defaultValue="Beem" />
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    50
		<EditTextPreference android:key="settings_key_priority"
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    51
			android:title="@string/SettingsPriorityTitle" android:summary="@string/SettingsPrioritySummary"
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
    52
			android:numeric="signed" android:defaultValue="0" />
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    53
	</PreferenceCategory>
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    54
	<PreferenceCategory android:title="@string/network_preferences">
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    55
		<PreferenceScreen android:key="proxy" android:title="@string/SettingsProxy"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    56
			android:summary="@string/settings_proxy_sum">
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    57
			<CheckBoxPreference android:title="@string/SettingsProxyProxy"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    58
				android:defaultValue="false" android:summary="@string/SettingsProxySummary"
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    59
				android:key="proxy_use" />
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    60
			<PreferenceCategory android:title="@string/proxy_proxy_settings">
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    61
				<ListPreference android:dependency="proxy_use"
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    62
					android:title="@string/SettingsProxyType" android:entries="@array/proxy_types"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    63
					android:summary="@string/SettingsProxyTypeSummary"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    64
					android:defaultValue="HTTP" android:entryValues="@array/proxy_types"
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    65
					android:key="proxy_type" />
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    66
				<EditTextPreference android:singleLine="true"
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    67
					android:dependency="proxy_use" android:name="serveur"
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    68
					android:summary="@string/SettingsProxyServer" android:title="@string/settings_proxy_server"
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    69
					android:key="proxy_server" />
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    70
				<EditTextPreference android:singleLine="true"
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    71
					android:dependency="proxy_use" android:name="port"
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    72
					android:summary="@string/SettingsProxyPort" android:title="@string/settings_proxy_port"
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    73
					android:key="proxy_port" android:numeric="signed" android:hint="@string/comments_proxy_port" />
496
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
    74
			</PreferenceCategory>
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    75
			<PreferenceCategory android:title="@string/proxy_user_settings">
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    76
				<EditTextPreference android:singleLine="true"
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    77
					android:dependency="proxy_use" android:name="Utilisateur"
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    78
					android:summary="@string/SettingsProxyUser" android:title="@string/settings_proxy_username"
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    79
					android:key="proxy_username" />
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    80
				<EditTextPreference android:singleLine="true"
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    81
					android:dependency="proxy_use" android:name="pass_user"
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    82
					android:password="true" android:summary="@string/SettingsProxyPassword"
739
106f089f8cde refactor use constants for proxy preference key.
Da Risk <darisk972@gmail.com>
parents: 728
diff changeset
    83
					android:title="@string/settings_proxy_password" android:key="proxy_password" />
496
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
    84
			</PreferenceCategory>
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
    85
		</PreferenceScreen>
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    86
		<PreferenceScreen android:key="advanced"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    87
			android:title="@string/SettingsAdvanced" android:summary="@string/settings_advanced_sum">
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    88
			<PreferenceCategory android:title="@string/settings_advanced_service_behaviour">
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    89
				<CheckBoxPreference android:title="@string/settings_xmpp_use_tls"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    90
					android:defaultValue="false" android:key="settings_key_xmpp_tls_use" />
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    91
				<EditTextPreference android:singleLine="true"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    92
					android:title="@string/settings_reco_delay" android:name="Reconnect delay"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    93
					android:summary="@string/SettingsAdvancedRecoDelay" android:key="settings_key_reco_delay"
496
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
    94
					android:defaultValue="10" />
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
    95
			</PreferenceCategory>
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    96
			<CheckBoxPreference android:title="@string/SettingsAdvancedOptions"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    97
				android:defaultValue="false" android:summary="@string/SettingsAdvancedSpecOpt"
496
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
    98
				android:key="settings_key_specific_server" />
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
    99
			<EditTextPreference android:singleLine="true"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
   100
				android:dependency="settings_key_specific_server" android:name="adresse"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
   101
				android:summary="@string/SettingsAdvancedAddOpt" android:title="@string/settings_xmpp_server"
706
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
   102
				android:key="settings_key_xmpp_server" android:hint="@string/comments_xmpp_server" />
517
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
   103
			<EditTextPreference android:singleLine="true"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
   104
				android:dependency="settings_key_specific_server" android:name="port"
fd6c52c23165 Ajout du bouton "Envoyer" dans l'activite Chat.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 496
diff changeset
   105
				android:summary="@string/SettingsAdvancedPortOpt" android:title="@string/settings_xmpp_port"
711
d80ac2c011f8 settings input types tweak
Nikita Kozlov <nikita@beem-project.com>
parents: 706
diff changeset
   106
				android:defaultValue="5222" android:numeric="signed" android:key="settings_key_xmpp_port"
706
bc47c8518bfd some notification preferences
Nikita Kozlov <nikita@beem-project.com>
parents: 678
diff changeset
   107
				android:hint="@string/comments_xmpp_port" />
496
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
   108
		</PreferenceScreen>
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
   109
	</PreferenceCategory>
Philippe Lago <lago_p@epitech.net>
parents: 491
diff changeset
   110
</PreferenceScreen>