preference_connection.xml 4.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
    <CheckBoxPreference
        android:title="@string/connection_start_at_boot"
        android:key="@string/connection_start_at_boot_key"
        android:defaultValue="@bool/connection_start_at_boot_default"
        />
    <ListPreference
        android:title="@string/connection_go_away"
        android:key="@string/connection_go_away_key"
        android:entries="@array/connection_go_away_entries"
        android:entryValues="@array/connection_go_away_entryvalues"
        android:defaultValue="@string/connection_go_away_default"
        />
    <ListPreference
        android:title="@string/connection_go_xa"
        android:key="@string/connection_go_xa_key"
        android:entries="@array/connection_go_xa_entries"
        android:entryValues="@array/connection_go_xa_entryvalues"
        android:defaultValue="@string/connection_go_xa_default"
        />
    <CheckBoxPreference
        android:title="@string/connection_wifi_lock"
        android:key="@string/connection_wifi_lock_key"
        android:defaultValue="@bool/connection_wifi_lock_default"
        />
    <CheckBoxPreference
        android:title="@string/connection_wake_lock"
        android:key="@string/connection_wake_lock_key"
        android:defaultValue="@bool/connection_wake_lock_default"
        />
    <CheckBoxPreference
        android:title="@string/connection_load_vcard"
        android:key="@string/connection_load_vcard_key"
        android:defaultValue="@bool/connection_load_vcard_default"
        />
37 38 39 40 41
    <CheckBoxPreference
        android:title="@string/connection_use_carbons"
        android:key="@string/connection_use_carbons_key"
        android:defaultValue="@bool/connection_use_carbons_default"
        />
42 43 44 45 46 47 48 49 50 51 52 53 54
    <PreferenceCategory
        android:title="@string/connection_priority"
        >
        <CheckBoxPreference
            android:title="@string/connection_adjust_priority"
            android:key="@string/connection_adjust_priority_key"
            android:defaultValue="@bool/connection_adjust_priority_default"
            />
        <com.xabber.android.ui.widget.PriorityPreference
            android:key="@string/connection_priority_chat_key"
            android:defaultValue="@string/connection_priority_chat_default"
            android:dependency="@string/connection_adjust_priority_key"
            android:title="@string/chat"
55
            android:inputType="numberSigned"
56 57 58 59 60 61 62
            android:singleLine="true"
            />
        <com.xabber.android.ui.widget.PriorityPreference
            android:key="@string/connection_priority_available_key"
            android:defaultValue="@string/connection_priority_available_default"
            android:dependency="@string/connection_adjust_priority_key"
            android:title="@string/available"
63
            android:inputType="numberSigned"
64 65 66 67 68 69 70
            android:singleLine="true"
            />
        <com.xabber.android.ui.widget.PriorityPreference
            android:key="@string/connection_priority_away_key"
            android:defaultValue="@string/connection_priority_away_default"
            android:dependency="@string/connection_adjust_priority_key"
            android:title="@string/away"
71
            android:inputType="numberSigned"
72 73 74 75 76 77 78
            android:singleLine="true"
            />
        <com.xabber.android.ui.widget.PriorityPreference
            android:key="@string/connection_priority_xa_key"
            android:defaultValue="@string/connection_priority_xa_default"
            android:dependency="@string/connection_adjust_priority_key"
            android:title="@string/xa"
79
            android:inputType="numberSigned"
80 81 82 83 84 85 86
            android:singleLine="true"
            />
        <com.xabber.android.ui.widget.PriorityPreference
            android:key="@string/connection_priority_dnd_key"
            android:defaultValue="@string/connection_priority_dnd_default"
            android:dependency="@string/connection_adjust_priority_key"
            android:title="@string/dnd"
87
            android:inputType="numberSigned"
88 89 90 91
            android:singleLine="true"
            />
    </PreferenceCategory>
</PreferenceScreen>