<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >

    <PreferenceCategory
        android:title="@string/set_main_settings"
        android:key="main_category">

        <EditTextPreference
            android:key="phone"
            android:title="@string/set_phone"
            android:dialogTitle="@string/set_phone"
            android:defaultValue=""
            android:summary=""
            android:inputType="phone"
            android:numeric="integer"
            android:maxLength="15"
            android:enabled="true"
            />

        <EditTextPreference
            android:key="password"
            android:title="@string/set_password"
            android:dialogTitle="@string/set_password"
            android:defaultValue="1234"
            android:summary="****"
            android:inputType="numberPassword"
            android:numeric="integer"
            android:maxLength="4"
            android:enabled="true"
            />

        <EditTextPreference
            android:key="imei"
            android:title="@string/set_IMEI"
            android:dialogTitle="@string/set_IMEI"
            android:defaultValue=""
            android:summary=""

            android:inputType="number"
            android:maxLength="15"
            android:enabled="true"
            />

        <SwitchPreference
            android:key="sound"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_sound"
            android:defaultValue="true" />

        <SwitchPreference
            android:key="vibro"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_vibro"
            android:defaultValue="true" />




        <ListPreference
            android:key="connection"
            android:title="@string/set_connection"
            android:summary=""
            android:dialogTitle="@string/set_connection"
            android:defaultValue="1"
            android:entries="@array/settings_connection"
            android:entryValues="@array/settings_connectionVal" />

        <SwitchPreference
            android:key="checkBox_query"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_checkBox_query"
            android:defaultValue="true" />

        <ListPreference
            android:key="protocol"
            android:title="@string/set_protocol"
            android:summary=""
            android:dialogTitle="@string/set_protocol"
            android:defaultValue="1"
            android:entries="@array/settings_protocol"
            android:entryValues="@array/settings_protocolVal" />

        <EditTextPreference
            android:key="alive_timeout"
            android:title="@string/set_alive_timeout"
            android:dialogTitle="@string/set_alive_timeout_"
            android:defaultValue="0"
            android:summary="0"

            android:numeric="integer"
            android:maxLength="15"
            android:enabled="true"
            />


        <!--
        <EditTextPreference
            android:key="server"
            android:title="@string/set_Server"
            android:dialogTitle="@string/set_Server"
            android:defaultValue="ok.webhop.net"
            android:summary="ok.webhop.net"
            android:inputType="textUri"
            android:enabled="true"
            />
            -->

    </PreferenceCategory>


    <!-- wired zones -->
    <PreferenceCategory
        android:title="@string/set_wired"
        android:key="wired_category">

        <PreferenceScreen
            android:key="wired_screen"
            android:summary=""
            android:title="@string/set_wired_main">
            <PreferenceCategory
                android:title="@string/set_wired_main"
                android:key="wired_main">


                <SwitchPreference
                    android:key="view_tamper"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_tamper_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_tamper"
                    android:title="@string/set_wired_tamper_name"
                    android:dialogTitle="@string/set_wired_tamper_name"
                    android:defaultValue="@string/set_name_tamper"
                    android:summary="@string/set_name_tamper"
                    android:inputType="text"
                    android:dependency="view_tamper"
                    />


                <SwitchPreference
                    android:key="view_i1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_1_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_input1"
                    android:title="@string/set_wired_1_name"
                    android:dialogTitle="@string/set_wired_1_name"
                    android:defaultValue="@string/set_name_input1"
                    android:summary="@string/set_name_input1"
                    android:inputType="text"
                    android:dependency="view_i1"
                    />

                <SwitchPreference
                    android:key="view_i2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_2_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_input2"
                    android:title="@string/set_wired_2_name"
                    android:dialogTitle="@string/set_wired_2_name"
                    android:defaultValue="@string/set_name_input2"
                    android:summary="@string/set_name_input2"
                    android:inputType="text"
                    android:dependency="view_i2"
                    />

                <SwitchPreference
                    android:key="view_i3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_3_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_input3"
                    android:title="@string/set_wired_3_name"
                    android:dialogTitle="@string/set_wired_3_name"
                    android:defaultValue="@string/set_name_input3"
                    android:summary="@string/set_name_input3"
                    android:inputType="text"
                    android:dependency="view_i3"
                    />

                <SwitchPreference
                    android:key="view_i4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_4_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_input4"
                    android:title="@string/set_wired_4_name"
                    android:dialogTitle="@string/set_wired_4_name"
                    android:defaultValue="@string/set_name_input4"
                    android:summary="@string/set_name_input4"
                    android:inputType="text"
                    android:dependency="view_i4"
                    />

                <SwitchPreference
                    android:key="view_i5"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_5_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_input5"
                    android:title="@string/set_wired_5_name"
                    android:dialogTitle="@string/set_wired_5_name"
                    android:defaultValue="@string/set_name_input5"
                    android:summary="@string/set_name_input5"
                    android:inputType="text"
                    android:dependency="view_i5"
                    />

                <SwitchPreference
                    android:key="view_i6"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_6_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_input6"
                    android:title="@string/set_wired_6_name"
                    android:dialogTitle="@string/set_wired_6_name"
                    android:defaultValue="@string/set_name_input6"
                    android:summary="@string/set_name_input6"
                    android:inputType="text"
                    android:dependency="view_i6"
                    />

                <SwitchPreference
                    android:key="view_i7"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_7_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_input7"
                    android:title="@string/set_wired_7_name"
                    android:dialogTitle="@string/set_wired_7_name"
                    android:defaultValue="@string/set_name_input7"
                    android:summary="@string/set_name_input7"
                    android:inputType="text"
                    android:dependency="view_i7"
                    />

                <SwitchPreference
                    android:key="view_i8"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_8_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_input8"
                    android:title="@string/set_wired_8_name"
                    android:dialogTitle="@string/set_wired_8_name"
                    android:defaultValue="@string/set_name_input8"
                    android:summary="@string/set_name_input8"
                    android:inputType="text"
                    android:dependency="view_i8"
                    />



            </PreferenceCategory>
        </PreferenceScreen>

        <PreferenceScreen
            android:key="ext0_screen"
            android:summary=""
            android:title="@string/set_wired_ext0">
            <PreferenceCategory
                android:title="@string/set_wired_ext0"
                android:key="wired_ext0">

                <SwitchPreference
                    android:key="view_i1_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input1_ext0"
                    android:title="@string/set_wired_1_name"
                    android:dialogTitle="@string/set_wired_1_name"
                    android:defaultValue="@string/set_name_input1_ext0"
                    android:summary="@string/set_name_input1_ext0"
                    android:inputType="text"
                    android:dependency="view_i1_ext0"
                    />

                <SwitchPreference
                    android:key="view_i2_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input2_ext0"
                    android:title="@string/set_wired_2_name"
                    android:dialogTitle="@string/set_wired_2_name"
                    android:defaultValue="@string/set_name_input2_ext0"
                    android:summary="@string/set_name_input2_ext0"
                    android:inputType="text"
                    android:dependency="view_i2_ext0"
                    />

                <SwitchPreference
                    android:key="view_i3_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input3_ext0"
                    android:title="@string/set_wired_3_name"
                    android:dialogTitle="@string/set_wired_3_name"
                    android:defaultValue="@string/set_name_input3_ext0"
                    android:summary="@string/set_name_input3_ext0"
                    android:inputType="text"
                    android:dependency="view_i3_ext0"
                    />


                <SwitchPreference
                    android:key="view_i4_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input4_ext0"
                    android:title="@string/set_wired_4_name"
                    android:dialogTitle="@string/set_wired_4_name"
                    android:defaultValue="@string/set_name_input4_ext0"
                    android:summary="@string/set_name_input4_ext0"
                    android:inputType="text"
                    android:dependency="view_i4_ext0"
                    />

                <SwitchPreference
                    android:key="view_i5_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input5_ext0"
                    android:title="@string/set_wired_5_name"
                    android:dialogTitle="@string/set_wired_5_name"
                    android:defaultValue="@string/set_name_input5_ext0"
                    android:summary="@string/set_name_input5_ext0"
                    android:inputType="text"
                    android:dependency="view_i5_ext0"
                    />

                <SwitchPreference
                    android:key="view_i6_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input6_ext0"
                    android:title="@string/set_wired_6_name"
                    android:dialogTitle="@string/set_wired_6_name"
                    android:defaultValue="@string/set_name_input6_ext0"
                    android:summary="@string/set_name_input6_ext0"
                    android:inputType="text"
                    android:dependency="view_i6_ext0"
                    />

                <SwitchPreference
                    android:key="view_i7_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input7_ext0"
                    android:title="@string/set_wired_7_name"
                    android:dialogTitle="@string/set_wired_7_name"
                    android:defaultValue="@string/set_name_input7_ext0"
                    android:summary="@string/set_name_input7_ext0"
                    android:inputType="text"
                    android:dependency="view_i7_ext0"
                    />
                <SwitchPreference
                    android:key="view_i8_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input8_ext0"
                    android:title="@string/set_wired_8_name"
                    android:dialogTitle="@string/set_wired_8_name"
                    android:defaultValue="@string/set_name_input8_ext0"
                    android:summary="@string/set_name_input8_ext0"
                    android:inputType="text"
                    android:dependency="view_i8_ext0"
                    />
            </PreferenceCategory>
        </PreferenceScreen>

        <PreferenceScreen
            android:key="ext1_screen"
            android:summary=""
            android:title="@string/set_wired_ext1">
            <PreferenceCategory
                android:title="@string/set_wired_ext1"
                android:key="wired_ext1">

                <SwitchPreference
                    android:key="view_i1_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input1_ext1"
                    android:title="@string/set_wired_1_name"
                    android:dialogTitle="@string/set_wired_1_name"
                    android:defaultValue="@string/set_name_input1_ext1"
                    android:summary="@string/set_name_input1_ext1"
                    android:inputType="text"
                    android:dependency="view_i1_ext1"
                    />

                <SwitchPreference
                    android:key="view_i2_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input2_ext1"
                    android:title="@string/set_wired_2_name"
                    android:dialogTitle="@string/set_wired_2_name"
                    android:defaultValue="@string/set_name_input2_ext1"
                    android:summary="@string/set_name_input2_ext1"
                    android:inputType="text"
                    android:dependency="view_i2_ext1"
                    />

                <SwitchPreference
                    android:key="view_i3_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input3_ext1"
                    android:title="@string/set_wired_3_name"
                    android:dialogTitle="@string/set_wired_3_name"
                    android:defaultValue="@string/set_name_input3_ext1"
                    android:summary="@string/set_name_input3_ext1"
                    android:inputType="text"
                    android:dependency="view_i3_ext1"
                    />


                <SwitchPreference
                    android:key="view_i4_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input4_ext1"
                    android:title="@string/set_wired_4_name"
                    android:dialogTitle="@string/set_wired_4_name"
                    android:defaultValue="@string/set_name_input4_ext1"
                    android:summary="@string/set_name_input4_ext1"
                    android:inputType="text"
                    android:dependency="view_i4_ext1"
                    />

                <SwitchPreference
                    android:key="view_i5_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input5_ext1"
                    android:title="@string/set_wired_5_name"
                    android:dialogTitle="@string/set_wired_5_name"
                    android:defaultValue="@string/set_name_input5_ext1"
                    android:summary="@string/set_name_input5_ext1"
                    android:inputType="text"
                    android:dependency="view_i5_ext1"
                    />

                <SwitchPreference
                    android:key="view_i6_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input6_ext1"
                    android:title="@string/set_wired_6_name"
                    android:dialogTitle="@string/set_wired_6_name"
                    android:defaultValue="@string/set_name_input6_ext1"
                    android:summary="@string/set_name_input6_ext1"
                    android:inputType="text"
                    android:dependency="view_i6_ext1"
                    />

                <SwitchPreference
                    android:key="view_i7_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input7_ext1"
                    android:title="@string/set_wired_7_name"
                    android:dialogTitle="@string/set_wired_7_name"
                    android:defaultValue="@string/set_name_input7_ext1"
                    android:summary="@string/set_name_input7_ext1"
                    android:inputType="text"
                    android:dependency="view_i7_ext1"
                    />
                <SwitchPreference
                    android:key="view_i8_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input8_ext1"
                    android:title="@string/set_wired_8_name"
                    android:dialogTitle="@string/set_wired_8_name"
                    android:defaultValue="@string/set_name_input8_ext1"
                    android:summary="@string/set_name_input8_ext1"
                    android:inputType="text"
                    android:dependency="view_i8_ext1"
                    />
            </PreferenceCategory>
        </PreferenceScreen>

        <PreferenceScreen
            android:key="ext2_screen"
            android:summary=""
            android:title="@string/set_wired_ext2">
            <PreferenceCategory
                android:title="@string/set_wired_ext2"
                android:key="wired_ext2">

                <SwitchPreference
                    android:key="view_i1_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input1_ext2"
                    android:title="@string/set_wired_1_name"
                    android:dialogTitle="@string/set_wired_1_name"
                    android:defaultValue="@string/set_name_input1_ext2"
                    android:summary="@string/set_name_input1_ext2"
                    android:inputType="text"
                    android:dependency="view_i1_ext2"
                    />

                <SwitchPreference
                    android:key="view_i2_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input2_ext2"
                    android:title="@string/set_wired_2_name"
                    android:dialogTitle="@string/set_wired_2_name"
                    android:defaultValue="@string/set_name_input2_ext2"
                    android:summary="@string/set_name_input2_ext2"
                    android:inputType="text"
                    android:dependency="view_i2_ext2"
                    />

                <SwitchPreference
                    android:key="view_i3_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input3_ext2"
                    android:title="@string/set_wired_3_name"
                    android:dialogTitle="@string/set_wired_3_name"
                    android:defaultValue="@string/set_name_input3_ext2"
                    android:summary="@string/set_name_input3_ext2"
                    android:inputType="text"
                    android:dependency="view_i3_ext2"
                    />


                <SwitchPreference
                    android:key="view_i4_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input4_ext2"
                    android:title="@string/set_wired_4_name"
                    android:dialogTitle="@string/set_wired_4_name"
                    android:defaultValue="@string/set_name_input4_ext2"
                    android:summary="@string/set_name_input4_ext2"
                    android:inputType="text"
                    android:dependency="view_i4_ext2"
                    />

                <SwitchPreference
                    android:key="view_i5_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input5_ext2"
                    android:title="@string/set_wired_5_name"
                    android:dialogTitle="@string/set_wired_5_name"
                    android:defaultValue="@string/set_name_input5_ext2"
                    android:summary="@string/set_name_input5_ext2"
                    android:inputType="text"
                    android:dependency="view_i5_ext2"
                    />

                <SwitchPreference
                    android:key="view_i6_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input6_ext2"
                    android:title="@string/set_wired_6_name"
                    android:dialogTitle="@string/set_wired_6_name"
                    android:defaultValue="@string/set_name_input6_ext2"
                    android:summary="@string/set_name_input6_ext2"
                    android:inputType="text"
                    android:dependency="view_i6_ext2"
                    />

                <SwitchPreference
                    android:key="view_i7_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input7_ext2"
                    android:title="@string/set_wired_7_name"
                    android:dialogTitle="@string/set_wired_7_name"
                    android:defaultValue="@string/set_name_input7_ext2"
                    android:summary="@string/set_name_input7_ext2"
                    android:inputType="text"
                    android:dependency="view_i7_ext2"
                    />
                <SwitchPreference
                    android:key="view_i8_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input8_ext2"
                    android:title="@string/set_wired_8_name"
                    android:dialogTitle="@string/set_wired_8_name"
                    android:defaultValue="@string/set_name_input8_ext2"
                    android:summary="@string/set_name_input8_ext2"
                    android:inputType="text"
                    android:dependency="view_i8_ext2"
                    />
            </PreferenceCategory>
        </PreferenceScreen>

        <PreferenceScreen
            android:key="ext3_screen"
            android:summary=""
            android:title="@string/set_wired_ext3">
            <PreferenceCategory
                android:title="@string/set_wired_ext3"
                android:key="wired_ext3">

                <SwitchPreference
                    android:key="view_i1_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input1_ext3"
                    android:title="@string/set_wired_1_name"
                    android:dialogTitle="@string/set_wired_1_name"
                    android:defaultValue="@string/set_name_input1_ext3"
                    android:summary="@string/set_name_input1_ext3"
                    android:inputType="text"
                    android:dependency="view_i1_ext3"
                    />

                <SwitchPreference
                    android:key="view_i2_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input2_ext3"
                    android:title="@string/set_wired_2_name"
                    android:dialogTitle="@string/set_wired_2_name"
                    android:defaultValue="@string/set_name_input2_ext3"
                    android:summary="@string/set_name_input2_ext3"
                    android:inputType="text"
                    android:dependency="view_i2_ext3"
                    />

                <SwitchPreference
                    android:key="view_i3_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input3_ext3"
                    android:title="@string/set_wired_3_name"
                    android:dialogTitle="@string/set_wired_3_name"
                    android:defaultValue="@string/set_name_input3_ext3"
                    android:summary="@string/set_name_input3_ext3"
                    android:inputType="text"
                    android:dependency="view_i3_ext3"
                    />


                <SwitchPreference
                    android:key="view_i4_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input4_ext3"
                    android:title="@string/set_wired_4_name"
                    android:dialogTitle="@string/set_wired_4_name"
                    android:defaultValue="@string/set_name_input4_ext3"
                    android:summary="@string/set_name_input4_ext3"
                    android:inputType="text"
                    android:dependency="view_i4_ext3"
                    />

                <SwitchPreference
                    android:key="view_i5_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input5_ext3"
                    android:title="@string/set_wired_5_name"
                    android:dialogTitle="@string/set_wired_5_name"
                    android:defaultValue="@string/set_name_input5_ext3"
                    android:summary="@string/set_name_input5_ext3"
                    android:inputType="text"
                    android:dependency="view_i5_ext3"
                    />

                <SwitchPreference
                    android:key="view_i6_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input6_ext3"
                    android:title="@string/set_wired_6_name"
                    android:dialogTitle="@string/set_wired_6_name"
                    android:defaultValue="@string/set_name_input6_ext3"
                    android:summary="@string/set_name_input6_ext3"
                    android:inputType="text"
                    android:dependency="view_i6_ext3"
                    />

                <SwitchPreference
                    android:key="view_i7_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input7_ext3"
                    android:title="@string/set_wired_7_name"
                    android:dialogTitle="@string/set_wired_7_name"
                    android:defaultValue="@string/set_name_input7_ext3"
                    android:summary="@string/set_name_input7_ext3"
                    android:inputType="text"
                    android:dependency="view_i7_ext3"
                    />
                <SwitchPreference
                    android:key="view_i8_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input8_ext3"
                    android:title="@string/set_wired_8_name"
                    android:dialogTitle="@string/set_wired_8_name"
                    android:defaultValue="@string/set_name_input8_ext3"
                    android:summary="@string/set_name_input8_ext3"
                    android:inputType="text"
                    android:dependency="view_i8_ext3"
                    />
            </PreferenceCategory>
        </PreferenceScreen>

        <PreferenceScreen
            android:key="ext4_screen"
            android:summary=""
            android:title="@string/set_wired_ext4">
            <PreferenceCategory
                android:title="@string/set_wired_ext4"
                android:key="wired_ext4">

                <SwitchPreference
                    android:key="view_i1_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input1_ext4"
                    android:title="@string/set_wired_1_name"
                    android:dialogTitle="@string/set_wired_1_name"
                    android:defaultValue="@string/set_name_input1_ext4"
                    android:summary="@string/set_name_input1_ext4"
                    android:inputType="text"
                    android:dependency="view_i1_ext4"
                    />

                <SwitchPreference
                    android:key="view_i2_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input2_ext4"
                    android:title="@string/set_wired_2_name"
                    android:dialogTitle="@string/set_wired_2_name"
                    android:defaultValue="@string/set_name_input2_ext4"
                    android:summary="@string/set_name_input2_ext4"
                    android:inputType="text"
                    android:dependency="view_i2_ext4"
                    />

                <SwitchPreference
                    android:key="view_i3_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input3_ext4"
                    android:title="@string/set_wired_3_name"
                    android:dialogTitle="@string/set_wired_3_name"
                    android:defaultValue="@string/set_name_input3_ext4"
                    android:summary="@string/set_name_input3_ext4"
                    android:inputType="text"
                    android:dependency="view_i3_ext4"
                    />


                <SwitchPreference
                    android:key="view_i4_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input4_ext4"
                    android:title="@string/set_wired_4_name"
                    android:dialogTitle="@string/set_wired_4_name"
                    android:defaultValue="@string/set_name_input4_ext4"
                    android:summary="@string/set_name_input4_ext4"
                    android:inputType="text"
                    android:dependency="view_i4_ext4"
                    />

                <SwitchPreference
                    android:key="view_i5_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input5_ext4"
                    android:title="@string/set_wired_5_name"
                    android:dialogTitle="@string/set_wired_5_name"
                    android:defaultValue="@string/set_name_input5_ext4"
                    android:summary="@string/set_name_input5_ext4"
                    android:inputType="text"
                    android:dependency="view_i5_ext4"
                    />

                <SwitchPreference
                    android:key="view_i6_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input6_ext4"
                    android:title="@string/set_wired_6_name"
                    android:dialogTitle="@string/set_wired_6_name"
                    android:defaultValue="@string/set_name_input6_ext4"
                    android:summary="@string/set_name_input6_ext4"
                    android:inputType="text"
                    android:dependency="view_i6_ext4"
                    />

                <SwitchPreference
                    android:key="view_i7_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input7_ext4"
                    android:title="@string/set_wired_7_name"
                    android:dialogTitle="@string/set_wired_7_name"
                    android:defaultValue="@string/set_name_input7_ext4"
                    android:summary="@string/set_name_input7_ext4"
                    android:inputType="text"
                    android:dependency="view_i7_ext4"
                    />
                <SwitchPreference
                    android:key="view_i8_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_wired_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_input8_ext4"
                    android:title="@string/set_wired_8_name"
                    android:dialogTitle="@string/set_wired_8_name"
                    android:defaultValue="@string/set_name_input8_ext4"
                    android:summary="@string/set_name_input8_ext4"
                    android:inputType="text"
                    android:dependency="view_i8_ext4"
                    />
            </PreferenceCategory>

        </PreferenceScreen>


    </PreferenceCategory>


    <!-- outputs -->
    <PreferenceCategory
        android:title="@string/set_output"
        android:key="output_category">

        <PreferenceScreen
            android:key="output_screen"
            android:summary=""
            android:title="@string/set_output_main">
            <PreferenceCategory
                android:title="@string/set_output_main"
                android:key="output_main">

                <SwitchPreference
                    android:key="view_o1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_1_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_output1"
                    android:title="@string/set_output_1_name"
                    android:dialogTitle="@string/set_output_1_name"
                    android:defaultValue="@string/set_name_output1"
                    android:summary="@string/set_name_output1"
                    android:inputType="text"
                    android:dependency="view_o1"
                    />

                <SwitchPreference
                    android:key="view_o2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_2_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_output2"
                    android:title="@string/set_output_2_name"
                    android:dialogTitle="@string/set_output_2_name"
                    android:defaultValue="@string/set_name_output2"
                    android:summary="@string/set_name_output2"
                    android:inputType="text"
                    android:dependency="view_o2"
                    />

                <SwitchPreference
                    android:key="view_o3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_3_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_output3"
                    android:title="@string/set_output_3_name"
                    android:dialogTitle="@string/set_output_3_name"
                    android:defaultValue="@string/set_name_output3"
                    android:summary="@string/set_name_output3"
                    android:inputType="text"
                    android:dependency="view_o3"
                    />


                <SwitchPreference
                    android:key="view_o4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_4_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_output4"
                    android:title="@string/set_output_4_name"
                    android:dialogTitle="@string/set_output_4_name"
                    android:defaultValue="@string/set_name_output4"
                    android:summary="@string/set_name_output4"
                    android:inputType="text"
                    android:dependency="view_o4"
                    />

                <SwitchPreference
                    android:key="view_o5"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_5_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_output5"
                    android:title="@string/set_output_5_name"
                    android:dialogTitle="@string/set_output_5_name"
                    android:defaultValue="@string/set_name_output5"
                    android:summary="@string/set_name_output5"
                    android:inputType="text"
                    android:dependency="view_o5"
                    />

                <SwitchPreference
                    android:key="view_o6"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_6_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_output6"
                    android:title="@string/set_output_6_name"
                    android:dialogTitle="@string/set_output_6_name"
                    android:defaultValue="@string/set_name_output6"
                    android:summary="@string/set_name_output6"
                    android:inputType="text"
                    android:dependency="view_o6"
                    />

                <SwitchPreference
                    android:key="view_o7"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_7_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_output7"
                    android:title="@string/set_output_7_name"
                    android:dialogTitle="@string/set_output_7_name"
                    android:defaultValue="@string/set_name_output7"
                    android:summary="@string/set_name_output7"
                    android:inputType="text"
                    android:dependency="view_o7"
                    />
                <SwitchPreference
                    android:key="view_o8"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_8_view"
                    android:defaultValue="true" />

                <EditTextPreference
                    android:key="name_output8"
                    android:title="@string/set_output_8_name"
                    android:dialogTitle="@string/set_output_8_name"
                    android:defaultValue="@string/set_name_output8"
                    android:summary="@string/set_name_output8"
                    android:inputType="text"
                    android:dependency="view_o8"
                    />
            </PreferenceCategory>
        </PreferenceScreen>

        <PreferenceScreen
            android:key="output_ext0_screen"
            android:summary=""
            android:title="@string/set_output_ext0">
            <PreferenceCategory
                android:title="@string/set_output_ext0"
                android:key="output_ext0">

                <SwitchPreference
                    android:key="view_o1_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output1_ext0"
                    android:title="@string/set_output_1_name"
                    android:dialogTitle="@string/set_output_1_name"
                    android:defaultValue="@string/set_name_output1_ext0"
                    android:summary="@string/set_name_output1_ext0"
                    android:inputType="text"
                    android:dependency="view_o1_ext0"
                    />

                <SwitchPreference
                    android:key="view_o2_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output2_ext0"
                    android:title="@string/set_output_2_name"
                    android:dialogTitle="@string/set_output_2_name"
                    android:defaultValue="@string/set_name_output2_ext0"
                    android:summary="@string/set_name_output2_ext0"
                    android:inputType="text"
                    android:dependency="view_o2_ext0"
                    />

                <SwitchPreference
                    android:key="view_o3_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output3_ext0"
                    android:title="@string/set_output_3_name"
                    android:dialogTitle="@string/set_output_3_name"
                    android:defaultValue="@string/set_name_output3_ext0"
                    android:summary="@string/set_name_output3_ext0"
                    android:inputType="text"
                    android:dependency="view_o3_ext0"
                    />


                <SwitchPreference
                    android:key="view_o4_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output4_ext0"
                    android:title="@string/set_output_4_name"
                    android:dialogTitle="@string/set_output_4_name"
                    android:defaultValue="@string/set_name_output4_ext0"
                    android:summary="@string/set_name_output4_ext0"
                    android:inputType="text"
                    android:dependency="view_o4_ext0"
                    />

                <SwitchPreference
                    android:key="view_o5_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output5_ext0"
                    android:title="@string/set_output_5_name"
                    android:dialogTitle="@string/set_output_5_name"
                    android:defaultValue="@string/set_name_output5_ext0"
                    android:summary="@string/set_name_output5_ext0"
                    android:inputType="text"
                    android:dependency="view_o5_ext0"
                    />

                <SwitchPreference
                    android:key="view_o6_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output6_ext0"
                    android:title="@string/set_output_6_name"
                    android:dialogTitle="@string/set_output_6_name"
                    android:defaultValue="@string/set_name_output6_ext0"
                    android:summary="@string/set_name_output6_ext0"
                    android:inputType="text"
                    android:dependency="view_o6_ext0"
                    />

                <SwitchPreference
                    android:key="view_o7_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output7_ext0"
                    android:title="@string/set_output_7_name"
                    android:dialogTitle="@string/set_output_7_name"
                    android:defaultValue="@string/set_name_output7_ext0"
                    android:summary="@string/set_name_output7_ext0"
                    android:inputType="text"
                    android:dependency="view_o7_ext0"
                    />
                <SwitchPreference
                    android:key="view_o8_ext0"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output8_ext0"
                    android:title="@string/set_output_8_name"
                    android:dialogTitle="@string/set_output_8_name"
                    android:defaultValue="@string/set_name_output8_ext0"
                    android:summary="@string/set_name_output8_ext0"
                    android:inputType="text"
                    android:dependency="view_o8_ext0"
                    />
            </PreferenceCategory>
        </PreferenceScreen>


        <PreferenceScreen
            android:key="output_ext1_screen"
            android:summary=""
            android:title="@string/set_output_ext1">
            <PreferenceCategory
                android:title="@string/set_output_ext1"
                android:key="output_ext1">

                <SwitchPreference
                    android:key="view_o1_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output1_ext1"
                    android:title="@string/set_output_1_name"
                    android:dialogTitle="@string/set_output_1_name"
                    android:defaultValue="@string/set_name_output1_ext1"
                    android:summary="@string/set_name_output1_ext1"
                    android:inputType="text"
                    android:dependency="view_o1_ext1"
                    />

                <SwitchPreference
                    android:key="view_o2_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output2_ext1"
                    android:title="@string/set_output_2_name"
                    android:dialogTitle="@string/set_output_2_name"
                    android:defaultValue="@string/set_name_output2_ext1"
                    android:summary="@string/set_name_output2_ext1"
                    android:inputType="text"
                    android:dependency="view_o2_ext1"
                    />

                <SwitchPreference
                    android:key="view_o3_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output3_ext1"
                    android:title="@string/set_output_3_name"
                    android:dialogTitle="@string/set_output_3_name"
                    android:defaultValue="@string/set_name_output3_ext1"
                    android:summary="@string/set_name_output3_ext1"
                    android:inputType="text"
                    android:dependency="view_o3_ext1"
                    />


                <SwitchPreference
                    android:key="view_o4_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output4_ext1"
                    android:title="@string/set_output_4_name"
                    android:dialogTitle="@string/set_output_4_name"
                    android:defaultValue="@string/set_name_output4_ext1"
                    android:summary="@string/set_name_output4_ext1"
                    android:inputType="text"
                    android:dependency="view_o4_ext1"
                    />

                <SwitchPreference
                    android:key="view_o5_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output5_ext1"
                    android:title="@string/set_output_5_name"
                    android:dialogTitle="@string/set_output_5_name"
                    android:defaultValue="@string/set_name_output5_ext1"
                    android:summary="@string/set_name_output5_ext1"
                    android:inputType="text"
                    android:dependency="view_o5_ext1"
                    />

                <SwitchPreference
                    android:key="view_o6_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output6_ext1"
                    android:title="@string/set_output_6_name"
                    android:dialogTitle="@string/set_output_6_name"
                    android:defaultValue="@string/set_name_output6_ext1"
                    android:summary="@string/set_name_output6_ext1"
                    android:inputType="text"
                    android:dependency="view_o6_ext1"
                    />

                <SwitchPreference
                    android:key="view_o7_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output7_ext1"
                    android:title="@string/set_output_7_name"
                    android:dialogTitle="@string/set_output_7_name"
                    android:defaultValue="@string/set_name_output7_ext1"
                    android:summary="@string/set_name_output7_ext1"
                    android:inputType="text"
                    android:dependency="view_o7_ext1"
                    />
                <SwitchPreference
                    android:key="view_o8_ext1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output8_ext1"
                    android:title="@string/set_output_8_name"
                    android:dialogTitle="@string/set_output_8_name"
                    android:defaultValue="@string/set_name_output8_ext1"
                    android:summary="@string/set_name_output8_ext1"
                    android:inputType="text"
                    android:dependency="view_o8_ext1"
                    />
            </PreferenceCategory>
        </PreferenceScreen>

        <PreferenceScreen
            android:key="output_ext2_screen"
            android:summary=""
            android:title="@string/set_output_ext2">
            <PreferenceCategory
                android:title="@string/set_output_ext2"
                android:key="output_ext2">

                <SwitchPreference
                    android:key="view_o1_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output1_ext2"
                    android:title="@string/set_output_1_name"
                    android:dialogTitle="@string/set_output_1_name"
                    android:defaultValue="@string/set_name_output1_ext2"
                    android:summary="@string/set_name_output1_ext2"
                    android:inputType="text"
                    android:dependency="view_o1_ext2"
                    />

                <SwitchPreference
                    android:key="view_o2_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output2_ext2"
                    android:title="@string/set_output_2_name"
                    android:dialogTitle="@string/set_output_2_name"
                    android:defaultValue="@string/set_name_output2_ext2"
                    android:summary="@string/set_name_output2_ext2"
                    android:inputType="text"
                    android:dependency="view_o2_ext2"
                    />

                <SwitchPreference
                    android:key="view_o3_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output3_ext2"
                    android:title="@string/set_output_3_name"
                    android:dialogTitle="@string/set_output_3_name"
                    android:defaultValue="@string/set_name_output3_ext2"
                    android:summary="@string/set_name_output3_ext2"
                    android:inputType="text"
                    android:dependency="view_o3_ext2"
                    />


                <SwitchPreference
                    android:key="view_o4_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output4_ext2"
                    android:title="@string/set_output_4_name"
                    android:dialogTitle="@string/set_output_4_name"
                    android:defaultValue="@string/set_name_output4_ext2"
                    android:summary="@string/set_name_output4_ext2"
                    android:inputType="text"
                    android:dependency="view_o4_ext2"
                    />

                <SwitchPreference
                    android:key="view_o5_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output5_ext2"
                    android:title="@string/set_output_5_name"
                    android:dialogTitle="@string/set_output_5_name"
                    android:defaultValue="@string/set_name_output5_ext2"
                    android:summary="@string/set_name_output5_ext2"
                    android:inputType="text"
                    android:dependency="view_o5_ext2"
                    />

                <SwitchPreference
                    android:key="view_o6_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output6_ext2"
                    android:title="@string/set_output_6_name"
                    android:dialogTitle="@string/set_output_6_name"
                    android:defaultValue="@string/set_name_output6_ext2"
                    android:summary="@string/set_name_output6_ext2"
                    android:inputType="text"
                    android:dependency="view_o6_ext2"
                    />

                <SwitchPreference
                    android:key="view_o7_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output7_ext2"
                    android:title="@string/set_output_7_name"
                    android:dialogTitle="@string/set_output_7_name"
                    android:defaultValue="@string/set_name_output7_ext2"
                    android:summary="@string/set_name_output7_ext2"
                    android:inputType="text"
                    android:dependency="view_o7_ext2"
                    />
                <SwitchPreference
                    android:key="view_o8_ext2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output8_ext2"
                    android:title="@string/set_output_8_name"
                    android:dialogTitle="@string/set_output_8_name"
                    android:defaultValue="@string/set_name_output8_ext2"
                    android:summary="@string/set_name_output8_ext2"
                    android:inputType="text"
                    android:dependency="view_o8_ext2"
                    />
            </PreferenceCategory>
        </PreferenceScreen>

        <PreferenceScreen
            android:key="output_ext3_screen"
            android:summary=""
            android:title="@string/set_output_ext3">
            <PreferenceCategory
                android:title="@string/set_output_ext3"
                android:key="output_ext3">

                <SwitchPreference
                    android:key="view_o1_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output1_ext3"
                    android:title="@string/set_output_1_name"
                    android:dialogTitle="@string/set_output_1_name"
                    android:defaultValue="@string/set_name_output1_ext3"
                    android:summary="@string/set_name_output1_ext3"
                    android:inputType="text"
                    android:dependency="view_o1_ext3"
                    />

                <SwitchPreference
                    android:key="view_o2_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output2_ext3"
                    android:title="@string/set_output_2_name"
                    android:dialogTitle="@string/set_output_2_name"
                    android:defaultValue="@string/set_name_output2_ext3"
                    android:summary="@string/set_name_output2_ext3"
                    android:inputType="text"
                    android:dependency="view_o2_ext3"
                    />

                <SwitchPreference
                    android:key="view_o3_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output3_ext3"
                    android:title="@string/set_output_3_name"
                    android:dialogTitle="@string/set_output_3_name"
                    android:defaultValue="@string/set_name_output3_ext3"
                    android:summary="@string/set_name_output3_ext3"
                    android:inputType="text"
                    android:dependency="view_o3_ext3"
                    />


                <SwitchPreference
                    android:key="view_o4_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output4_ext3"
                    android:title="@string/set_output_4_name"
                    android:dialogTitle="@string/set_output_4_name"
                    android:defaultValue="@string/set_name_output4_ext3"
                    android:summary="@string/set_name_output4_ext3"
                    android:inputType="text"
                    android:dependency="view_o4_ext3"
                    />

                <SwitchPreference
                    android:key="view_o5_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output5_ext3"
                    android:title="@string/set_output_5_name"
                    android:dialogTitle="@string/set_output_5_name"
                    android:defaultValue="@string/set_name_output5_ext3"
                    android:summary="@string/set_name_output5_ext3"
                    android:inputType="text"
                    android:dependency="view_o5_ext3"
                    />

                <SwitchPreference
                    android:key="view_o6_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output6_ext3"
                    android:title="@string/set_output_6_name"
                    android:dialogTitle="@string/set_output_6_name"
                    android:defaultValue="@string/set_name_output6_ext3"
                    android:summary="@string/set_name_output6_ext3"
                    android:inputType="text"
                    android:dependency="view_o6_ext3"
                    />

                <SwitchPreference
                    android:key="view_o7_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output7_ext3"
                    android:title="@string/set_output_7_name"
                    android:dialogTitle="@string/set_output_7_name"
                    android:defaultValue="@string/set_name_output7_ext3"
                    android:summary="@string/set_name_output7_ext3"
                    android:inputType="text"
                    android:dependency="view_o7_ext3"
                    />
                <SwitchPreference
                    android:key="view_o8_ext3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output8_ext3"
                    android:title="@string/set_output_8_name"
                    android:dialogTitle="@string/set_output_8_name"
                    android:defaultValue="@string/set_name_output8_ext3"
                    android:summary="@string/set_name_output8_ext3"
                    android:inputType="text"
                    android:dependency="view_o8_ext3"
                    />
            </PreferenceCategory>
        </PreferenceScreen>

        <PreferenceScreen
            android:key="output_ext4_screen"
            android:summary=""
            android:title="@string/set_output_ext4">
            <PreferenceCategory
                android:title="@string/set_output_ext4"
                android:key="output_ext4">

                <SwitchPreference
                    android:key="view_o1_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output1_ext4"
                    android:title="@string/set_output_1_name"
                    android:dialogTitle="@string/set_output_1_name"
                    android:defaultValue="@string/set_name_output1_ext4"
                    android:summary="@string/set_name_output1_ext4"
                    android:inputType="text"
                    android:dependency="view_o1_ext4"
                    />

                <SwitchPreference
                    android:key="view_o2_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output2_ext4"
                    android:title="@string/set_output_2_name"
                    android:dialogTitle="@string/set_output_2_name"
                    android:defaultValue="@string/set_name_output2_ext4"
                    android:summary="@string/set_name_output2_ext4"
                    android:inputType="text"
                    android:dependency="view_o2_ext4"
                    />

                <SwitchPreference
                    android:key="view_o3_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output3_ext4"
                    android:title="@string/set_output_3_name"
                    android:dialogTitle="@string/set_output_3_name"
                    android:defaultValue="@string/set_name_output3_ext4"
                    android:summary="@string/set_name_output3_ext4"
                    android:inputType="text"
                    android:dependency="view_o3_ext4"
                    />


                <SwitchPreference
                    android:key="view_o4_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output4_ext4"
                    android:title="@string/set_output_4_name"
                    android:dialogTitle="@string/set_output_4_name"
                    android:defaultValue="@string/set_name_output4_ext4"
                    android:summary="@string/set_name_output4_ext4"
                    android:inputType="text"
                    android:dependency="view_o4_ext4"
                    />

                <SwitchPreference
                    android:key="view_o5_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output5_ext4"
                    android:title="@string/set_output_5_name"
                    android:dialogTitle="@string/set_output_5_name"
                    android:defaultValue="@string/set_name_output5_ext4"
                    android:summary="@string/set_name_output5_ext4"
                    android:inputType="text"
                    android:dependency="view_o5_ext4"
                    />

                <SwitchPreference
                    android:key="view_o6_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output6_ext4"
                    android:title="@string/set_output_6_name"
                    android:dialogTitle="@string/set_output_6_name"
                    android:defaultValue="@string/set_name_output6_ext4"
                    android:summary="@string/set_name_output6_ext4"
                    android:inputType="text"
                    android:dependency="view_o6_ext4"
                    />

                <SwitchPreference
                    android:key="view_o7_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output7_ext4"
                    android:title="@string/set_output_7_name"
                    android:dialogTitle="@string/set_output_7_name"
                    android:defaultValue="@string/set_name_output7_ext4"
                    android:summary="@string/set_name_output7_ext4"
                    android:inputType="text"
                    android:dependency="view_o7_ext4"
                    />
                <SwitchPreference
                    android:key="view_o8_ext4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_output_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_output8_ext4"
                    android:title="@string/set_output_8_name"
                    android:dialogTitle="@string/set_output_8_name"
                    android:defaultValue="@string/set_name_output8_ext4"
                    android:summary="@string/set_name_output8_ext4"
                    android:inputType="text"
                    android:dependency="view_o8_ext4"
                    />
            </PreferenceCategory>

        </PreferenceScreen>


    </PreferenceCategory>

    <!-- radiosockets -->
    <PreferenceCategory
        android:title="@string/set_socket"
        android:key="socket_category">

        <PreferenceScreen
            android:key="socket_blk1_screen"
            android:summary=""
            android:title="@string/set_socket_blk1">
            <PreferenceCategory
                android:title="@string/set_socket_blk1"
                android:key="socket_blk1">

                <SwitchPreference
                    android:key="view_socket1_blk1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket1_blk1"
                    android:title="@string/set_name_socket1"
                    android:dialogTitle="@string/set_name_socket1"
                    android:defaultValue="@string/set_name_socket1_blk1"
                    android:summary="@string/set_name_socket1_blk1"
                    android:inputType="text"
                    android:dependency="view_socket1_blk1"
                    />

                <SwitchPreference
                    android:key="view_socket2_blk1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket2_blk1"
                    android:title="@string/set_name_socket2"
                    android:dialogTitle="@string/set_name_socket2"
                    android:defaultValue="@string/set_name_socket2_blk1"
                    android:summary="@string/set_name_socket2_blk1"
                    android:inputType="text"
                    android:dependency="view_socket2_blk1"
                    />
                <SwitchPreference
                    android:key="view_socket3_blk1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket3_blk1"
                    android:title="@string/set_name_socket3"
                    android:dialogTitle="@string/set_name_socket3"
                    android:defaultValue="@string/set_name_socket3_blk1"
                    android:summary="@string/set_name_socket3_blk1"
                    android:inputType="text"
                    android:dependency="view_socket3_blk1"
                    />
                <SwitchPreference
                    android:key="view_socket4_blk1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket4_blk1"
                    android:title="@string/set_name_socket4"
                    android:dialogTitle="@string/set_name_socket4"
                    android:defaultValue="@string/set_name_socket4_blk1"
                    android:summary="@string/set_name_socket4_blk1"
                    android:inputType="text"
                    android:dependency="view_socket4_blk1"
                    />

                <SwitchPreference
                    android:key="view_socket5_blk1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket5_blk1"
                    android:title="@string/set_name_socket5"
                    android:dialogTitle="@string/set_name_socket5"
                    android:defaultValue="@string/set_name_socket5_blk1"
                    android:summary="@string/set_name_socket5_blk1"
                    android:inputType="text"
                    android:dependency="view_socket5_blk1"
                    />

                <SwitchPreference
                    android:key="view_socket6_blk1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket6_blk1"
                    android:title="@string/set_name_socket6"
                    android:dialogTitle="@string/set_name_socket6"
                    android:defaultValue="@string/set_name_socket6_blk1"
                    android:summary="@string/set_name_socket6_blk1"
                    android:inputType="text"
                    android:dependency="view_socket6_blk1"
                    />
                <SwitchPreference
                    android:key="view_socket7_blk1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket7_blk1"
                    android:title="@string/set_name_socket7"
                    android:dialogTitle="@string/set_name_socket7"
                    android:defaultValue="@string/set_name_socket7_blk1"
                    android:summary="@string/set_name_socket7_blk1"
                    android:inputType="text"
                    android:dependency="view_socket7_blk1"
                    />
                <SwitchPreference
                    android:key="view_socket8_blk1"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket8_blk1"
                    android:title="@string/set_name_socket8"
                    android:dialogTitle="@string/set_name_socket8"
                    android:defaultValue="@string/set_name_socket8_blk1"
                    android:summary="@string/set_name_socket8_blk1"
                    android:inputType="text"
                    android:dependency="view_socket8_blk1"
                    />
            </PreferenceCategory>

        </PreferenceScreen>

        <PreferenceScreen
            android:key="socket_blk2_screen"
            android:summary=""
            android:title="@string/set_socket_blk2">
            <PreferenceCategory
                android:title="@string/set_socket_blk2"
                android:key="socket_blk2">

                <SwitchPreference
                    android:key="view_socket1_blk2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket1_blk2"
                    android:title="@string/set_name_socket1"
                    android:dialogTitle="@string/set_name_socket1"
                    android:defaultValue="@string/set_name_socket1_blk2"
                    android:summary="@string/set_name_socket1_blk2"
                    android:inputType="text"
                    android:dependency="view_socket1_blk2"
                    />

                <SwitchPreference
                    android:key="view_socket2_blk2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket2_blk2"
                    android:title="@string/set_name_socket2"
                    android:dialogTitle="@string/set_name_socket2"
                    android:defaultValue="@string/set_name_socket2_blk2"
                    android:summary="@string/set_name_socket2_blk2"
                    android:inputType="text"
                    android:dependency="view_socket2_blk2"
                    />
                <SwitchPreference
                    android:key="view_socket3_blk2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket3_blk2"
                    android:title="@string/set_name_socket3"
                    android:dialogTitle="@string/set_name_socket3"
                    android:defaultValue="@string/set_name_socket3_blk2"
                    android:summary="@string/set_name_socket3_blk2"
                    android:inputType="text"
                    android:dependency="view_socket3_blk2"
                    />
                <SwitchPreference
                    android:key="view_socket4_blk2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket4_blk2"
                    android:title="@string/set_name_socket4"
                    android:dialogTitle="@string/set_name_socket4"
                    android:defaultValue="@string/set_name_socket4_blk2"
                    android:summary="@string/set_name_socket4_blk2"
                    android:inputType="text"
                    android:dependency="view_socket4_blk2"
                    />

                <SwitchPreference
                    android:key="view_socket5_blk2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket5_blk2"
                    android:title="@string/set_name_socket5"
                    android:dialogTitle="@string/set_name_socket5"
                    android:defaultValue="@string/set_name_socket5_blk2"
                    android:summary="@string/set_name_socket5_blk2"
                    android:inputType="text"
                    android:dependency="view_socket5_blk2"
                    />

                <SwitchPreference
                    android:key="view_socket6_blk2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket6_blk2"
                    android:title="@string/set_name_socket6"
                    android:dialogTitle="@string/set_name_socket6"
                    android:defaultValue="@string/set_name_socket6_blk2"
                    android:summary="@string/set_name_socket6_blk2"
                    android:inputType="text"
                    android:dependency="view_socket6_blk2"
                    />
                <SwitchPreference
                    android:key="view_socket7_blk2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket7_blk2"
                    android:title="@string/set_name_socket7"
                    android:dialogTitle="@string/set_name_socket7"
                    android:defaultValue="@string/set_name_socket7_blk2"
                    android:summary="@string/set_name_socket7_blk2"
                    android:inputType="text"
                    android:dependency="view_socket7_blk2"
                    />
                <SwitchPreference
                    android:key="view_socket8_blk2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket8_blk2"
                    android:title="@string/set_name_socket8"
                    android:dialogTitle="@string/set_name_socket8"
                    android:defaultValue="@string/set_name_socket8_blk2"
                    android:summary="@string/set_name_socket8_blk2"
                    android:inputType="text"
                    android:dependency="view_socket8_blk2"
                    />
            </PreferenceCategory>

        </PreferenceScreen>

        <PreferenceScreen
            android:key="socket_blk3_screen"
            android:summary=""
            android:title="@string/set_socket_blk3">
            <PreferenceCategory
                android:title="@string/set_socket_blk3"
                android:key="socket_blk3">

                <SwitchPreference
                    android:key="view_socket1_blk3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket1_blk3"
                    android:title="@string/set_name_socket1"
                    android:dialogTitle="@string/set_name_socket1"
                    android:defaultValue="@string/set_name_socket1_blk3"
                    android:summary="@string/set_name_socket1_blk3"
                    android:inputType="text"
                    android:dependency="view_socket1_blk3"
                    />

                <SwitchPreference
                    android:key="view_socket2_blk3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket2_blk3"
                    android:title="@string/set_name_socket2"
                    android:dialogTitle="@string/set_name_socket2"
                    android:defaultValue="@string/set_name_socket2_blk3"
                    android:summary="@string/set_name_socket2_blk3"
                    android:inputType="text"
                    android:dependency="view_socket2_blk3"
                    />
                <SwitchPreference
                    android:key="view_socket3_blk3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket3_blk3"
                    android:title="@string/set_name_socket3"
                    android:dialogTitle="@string/set_name_socket3"
                    android:defaultValue="@string/set_name_socket3_blk3"
                    android:summary="@string/set_name_socket3_blk3"
                    android:inputType="text"
                    android:dependency="view_socket3_blk3"
                    />
                <SwitchPreference
                    android:key="view_socket4_blk3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket4_blk3"
                    android:title="@string/set_name_socket4"
                    android:dialogTitle="@string/set_name_socket4"
                    android:defaultValue="@string/set_name_socket4_blk3"
                    android:summary="@string/set_name_socket4_blk3"
                    android:inputType="text"
                    android:dependency="view_socket4_blk3"
                    />

                <SwitchPreference
                    android:key="view_socket5_blk3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket5_blk3"
                    android:title="@string/set_name_socket5"
                    android:dialogTitle="@string/set_name_socket5"
                    android:defaultValue="@string/set_name_socket5_blk3"
                    android:summary="@string/set_name_socket5_blk3"
                    android:inputType="text"
                    android:dependency="view_socket5_blk3"
                    />

                <SwitchPreference
                    android:key="view_socket6_blk3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket6_blk3"
                    android:title="@string/set_name_socket6"
                    android:dialogTitle="@string/set_name_socket6"
                    android:defaultValue="@string/set_name_socket6_blk3"
                    android:summary="@string/set_name_socket6_blk3"
                    android:inputType="text"
                    android:dependency="view_socket6_blk3"
                    />
                <SwitchPreference
                    android:key="view_socket7_blk3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket7_blk3"
                    android:title="@string/set_name_socket7"
                    android:dialogTitle="@string/set_name_socket7"
                    android:defaultValue="@string/set_name_socket7_blk3"
                    android:summary="@string/set_name_socket7_blk3"
                    android:inputType="text"
                    android:dependency="view_socket7_blk3"
                    />
                <SwitchPreference
                    android:key="view_socket8_blk3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket8_blk3"
                    android:title="@string/set_name_socket8"
                    android:dialogTitle="@string/set_name_socket8"
                    android:defaultValue="@string/set_name_socket8_blk3"
                    android:summary="@string/set_name_socket8_blk3"
                    android:inputType="text"
                    android:dependency="view_socket8_blk3"
                    />
            </PreferenceCategory>

        </PreferenceScreen>

        <PreferenceScreen
            android:key="socket_blk4_screen"
            android:summary=""
            android:title="@string/set_socket_blk4">
            <PreferenceCategory
                android:title="@string/set_socket_blk4"
                android:key="socket_blk4">

                <SwitchPreference
                    android:key="view_socket1_blk4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_1_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket1_blk4"
                    android:title="@string/set_name_socket1"
                    android:dialogTitle="@string/set_name_socket1"
                    android:defaultValue="@string/set_name_socket1_blk4"
                    android:summary="@string/set_name_socket1_blk4"
                    android:inputType="text"
                    android:dependency="view_socket1_blk4"
                    />

                <SwitchPreference
                    android:key="view_socket2_blk4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket2_blk4"
                    android:title="@string/set_name_socket2"
                    android:dialogTitle="@string/set_name_socket2"
                    android:defaultValue="@string/set_name_socket2_blk4"
                    android:summary="@string/set_name_socket2_blk4"
                    android:inputType="text"
                    android:dependency="view_socket2_blk4"
                    />
                <SwitchPreference
                    android:key="view_socket3_blk4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket3_blk4"
                    android:title="@string/set_name_socket3"
                    android:dialogTitle="@string/set_name_socket3"
                    android:defaultValue="@string/set_name_socket3_blk4"
                    android:summary="@string/set_name_socket3_blk4"
                    android:inputType="text"
                    android:dependency="view_socket3_blk4"
                    />
                <SwitchPreference
                    android:key="view_socket4_blk4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket4_blk4"
                    android:title="@string/set_name_socket4"
                    android:dialogTitle="@string/set_name_socket4"
                    android:defaultValue="@string/set_name_socket4_blk4"
                    android:summary="@string/set_name_socket4_blk4"
                    android:inputType="text"
                    android:dependency="view_socket4_blk4"
                    />

                <SwitchPreference
                    android:key="view_socket5_blk4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket5_blk4"
                    android:title="@string/set_name_socket5"
                    android:dialogTitle="@string/set_name_socket5"
                    android:defaultValue="@string/set_name_socket5_blk4"
                    android:summary="@string/set_name_socket5_blk4"
                    android:inputType="text"
                    android:dependency="view_socket5_blk4"
                    />

                <SwitchPreference
                    android:key="view_socket6_blk4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket6_blk4"
                    android:title="@string/set_name_socket6"
                    android:dialogTitle="@string/set_name_socket6"
                    android:defaultValue="@string/set_name_socket6_blk4"
                    android:summary="@string/set_name_socket6_blk4"
                    android:inputType="text"
                    android:dependency="view_socket6_blk4"
                    />
                <SwitchPreference
                    android:key="view_socket7_blk4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket7_blk4"
                    android:title="@string/set_name_socket7"
                    android:dialogTitle="@string/set_name_socket7"
                    android:defaultValue="@string/set_name_socket7_blk4"
                    android:summary="@string/set_name_socket7_blk4"
                    android:inputType="text"
                    android:dependency="view_socket7_blk4"
                    />
                <SwitchPreference
                    android:key="view_socket8_blk4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_socket_main_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_socket8_blk4"
                    android:title="@string/set_name_socket8"
                    android:dialogTitle="@string/set_name_socket8"
                    android:defaultValue="@string/set_name_socket8_blk4"
                    android:summary="@string/set_name_socket8_blk4"
                    android:inputType="text"
                    android:dependency="view_socket8_blk4"
                    />
            </PreferenceCategory>

        </PreferenceScreen>

    </PreferenceCategory>

    <!-- radio -->
    <PreferenceCategory
        android:title="@string/set_radio_settings"
        android:key="radio_category">

        <PreferenceScreen
            android:key="radio_screen"
            android:summary=""
            android:title="@string/set_radio_settings">
            <PreferenceCategory
                android:title="@string/set_radio_settings"
                android:key="radio">

        <SwitchPreference
            android:key="view_r1"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_1_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio1"
            android:title="@string/set_radio_1_name"
            android:dialogTitle="@string/set_radio_1_name"
            android:defaultValue="@string/set_name_radio1"
            android:summary="@string/set_name_radio1"
            android:inputType="text"
            android:dependency="view_r1"
            />

        <SwitchPreference
            android:key="view_r2"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_2_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio2"
            android:title="@string/set_radio_2_name"
            android:dialogTitle="@string/set_radio_2_name"
            android:defaultValue="@string/set_name_radio2"
            android:summary="@string/set_name_radio2"
            android:inputType="text"
            android:dependency="view_r2"
            />

        <SwitchPreference
            android:key="view_r3"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_3_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio3"
            android:title="@string/set_radio_3_name"
            android:dialogTitle="@string/set_radio_3_name"
            android:defaultValue="@string/set_name_radio3"
            android:summary="@string/set_name_radio3"
            android:inputType="text"
            android:dependency="view_r3"
            />
        <SwitchPreference
            android:key="view_r4"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_4_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio4"
            android:title="@string/set_radio_4_name"
            android:dialogTitle="@string/set_radio_4_name"
            android:defaultValue="@string/set_name_radio4"
            android:summary="@string/set_name_radio4"
            android:inputType="text"
            android:dependency="view_r4"
            />
        <SwitchPreference
            android:key="view_r5"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_5_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio5"
            android:title="@string/set_radio_5_name"
            android:dialogTitle="@string/set_radio_5_name"
            android:defaultValue="@string/set_name_radio5"
            android:summary="@string/set_name_radio5"
            android:inputType="text"
            android:dependency="view_r5"
            />

        <SwitchPreference
            android:key="view_r6"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_6_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio6"
            android:title="@string/set_radio_6_name"
            android:dialogTitle="@string/set_radio_6_name"
            android:defaultValue="@string/set_name_radio6"
            android:summary="@string/set_name_radio6"
            android:inputType="text"
            android:dependency="view_r6"
            />

        <SwitchPreference
            android:key="view_r7"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_7_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio7"
            android:title="@string/set_radio_7_name"
            android:dialogTitle="@string/set_radio_7_name"
            android:defaultValue="@string/set_name_radio7"
            android:summary="@string/set_name_radio7"
            android:inputType="text"
            android:dependency="view_r7"
            />

        <SwitchPreference
            android:key="view_r8"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_8_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio8"
            android:title="@string/set_radio_8_name"
            android:dialogTitle="@string/set_radio_8_name"
            android:defaultValue="@string/set_name_radio8"
            android:summary="@string/set_name_radio8"
            android:inputType="text"
            android:dependency="view_r8"
            />

        <SwitchPreference
            android:key="view_r9"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_9_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio9"
            android:title="@string/set_radio_9_name"
            android:dialogTitle="@string/set_radio_9_name"
            android:defaultValue="@string/set_name_radio9"
            android:summary="@string/set_name_radio9"
            android:inputType="text"
            android:dependency="view_r9"
            />

        <SwitchPreference
            android:key="view_r10"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_10_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio10"
            android:title="@string/set_radio_10_name"
            android:dialogTitle="@string/set_radio_10_name"
            android:defaultValue="@string/set_name_radio10"
            android:summary="@string/set_name_radio10"
            android:inputType="text"
            android:dependency="view_r10"
            />

        <SwitchPreference
            android:key="view_r11"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_11_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio11"
            android:title="@string/set_radio_11_name"
            android:dialogTitle="@string/set_radio_11_name"
            android:defaultValue="@string/set_name_radio11"
            android:summary="@string/set_name_radio11"
            android:inputType="text"
            android:dependency="view_r11"
            />

        <SwitchPreference
            android:key="view_r12"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_12_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio12"
            android:title="@string/set_radio_12_name"
            android:dialogTitle="@string/set_radio_12_name"
            android:defaultValue="@string/set_name_radio12"
            android:summary="@string/set_name_radio12"
            android:inputType="text"
            android:dependency="view_r12"
            />

        <SwitchPreference
            android:key="view_r13"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_13_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio13"
            android:title="@string/set_radio_13_name"
            android:dialogTitle="@string/set_radio_13_name"
            android:defaultValue="@string/set_name_radio13"
            android:summary="@string/set_name_radio13"
            android:inputType="text"
            android:dependency="view_r13"
            />

        <SwitchPreference
            android:key="view_r14"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_14_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio14"
            android:title="@string/set_radio_14_name"
            android:dialogTitle="@string/set_radio_14_name"
            android:defaultValue="@string/set_name_radio14"
            android:summary="@string/set_name_radio14"
            android:inputType="text"
            android:dependency="view_r14"
            />

        <SwitchPreference
            android:key="view_r15"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_15_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio15"
            android:title="@string/set_radio_15_name"
            android:dialogTitle="@string/set_radio_15_name"
            android:defaultValue="@string/set_name_radio15"
            android:summary="@string/set_name_radio15"
            android:inputType="text"
            android:dependency="view_r15"
            />

        <SwitchPreference
            android:key="view_r16"
            android:summaryOn="@string/set_ON"
            android:summaryOff="@string/set_OFF"
            android:title="@string/set_radio_16_view"
            android:defaultValue="false" />

        <EditTextPreference
            android:key="name_radio16"
            android:title="@string/set_radio_16_name"
            android:dialogTitle="@string/set_radio_16_name"
            android:defaultValue="@string/set_name_radio16"
            android:summary="@string/set_name_radio16"
            android:inputType="text"
            android:dependency="view_r16"
            />

            </PreferenceCategory>

        </PreferenceScreen>
    </PreferenceCategory>


    <!-- termo -->
    <PreferenceCategory
        android:title="@string/set_termo_settings"
        android:key="termo_category">

        <PreferenceScreen
            android:key="termo_screen"
            android:summary=""
            android:title="@string/set_termo_settings">
            <PreferenceCategory
                android:title="@string/set_termo_settings"
                android:key="radio">

            <SwitchPreference
                android:key="view_t1"
                android:summaryOn="@string/set_ON"
                android:summaryOff="@string/set_OFF"
                android:title="@string/set_termo_1_view"
                android:defaultValue="true" />

            <EditTextPreference
                android:key="name_termo1"
                android:title="@string/set_termo_1_name"
                android:dialogTitle="@string/set_termo_1_name"
                android:defaultValue="@string/set_name_termo1"
                android:summary="@string/set_name_termo1"
                android:inputType="text"
                android:dependency="view_t1"
                />

                <SwitchPreference
                    android:key="view_t2"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_termo_2_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_termo2"
                    android:title="@string/set_termo_2_name"
                    android:dialogTitle="@string/set_termo_2_name"
                    android:defaultValue="@string/set_name_termo2"
                    android:summary="@string/set_name_termo2"
                    android:inputType="text"
                    android:dependency="view_t2"
                    />

                <SwitchPreference
                    android:key="view_t3"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_termo_3_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_termo3"
                    android:title="@string/set_termo_3_name"
                    android:dialogTitle="@string/set_termo_3_name"
                    android:defaultValue="@string/set_name_termo3"
                    android:summary="@string/set_name_termo3"
                    android:inputType="text"
                    android:dependency="view_t3"
                    />

                <SwitchPreference
                    android:key="view_t4"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_termo_4_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_termo4"
                    android:title="@string/set_termo_4_name"
                    android:dialogTitle="@string/set_termo_4_name"
                    android:defaultValue="@string/set_name_termo4"
                    android:summary="@string/set_name_termo4"
                    android:inputType="text"
                    android:dependency="view_t4"
                    />


                <SwitchPreference
                    android:key="view_t5"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_termo_5_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_termo5"
                    android:title="@string/set_termo_5_name"
                    android:dialogTitle="@string/set_termo_5_name"
                    android:defaultValue="@string/set_name_termo5"
                    android:summary="@string/set_name_termo5"
                    android:inputType="text"
                    android:dependency="view_t5"
                    />

                <SwitchPreference
                    android:key="view_t6"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_termo_6_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_termo6"
                    android:title="@string/set_termo_6_name"
                    android:dialogTitle="@string/set_termo_6_name"
                    android:defaultValue="@string/set_name_termo6"
                    android:summary="@string/set_name_termo6"
                    android:inputType="text"
                    android:dependency="view_t6"
                    />

                <SwitchPreference
                    android:key="view_t7"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_termo_7_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_termo7"
                    android:title="@string/set_termo_7_name"
                    android:dialogTitle="@string/set_termo_7_name"
                    android:defaultValue="@string/set_name_termo7"
                    android:summary="@string/set_name_termo7"
                    android:inputType="text"
                    android:dependency="view_t7"
                    />

                <SwitchPreference
                    android:key="view_t8"
                    android:summaryOn="@string/set_ON"
                    android:summaryOff="@string/set_OFF"
                    android:title="@string/set_termo_8_view"
                    android:defaultValue="false" />

                <EditTextPreference
                    android:key="name_termo8"
                    android:title="@string/set_termo_8_name"
                    android:dialogTitle="@string/set_termo_8_name"
                    android:defaultValue="@string/set_name_termo8"
                    android:summary="@string/set_name_termo8"
                    android:inputType="text"
                    android:dependency="view_t8"
                    />
            </PreferenceCategory>

        </PreferenceScreen>
    </PreferenceCategory>


    <!-- command  -->
    <PreferenceCategory
        android:title="@string/set_command_settings"
        android:key="command_category">

        <PreferenceScreen
            android:key="command_screen"
            android:summary=""
            android:title="@string/set_command_settings">
            <PreferenceCategory
                android:title="@string/set_command_settings"
                android:key="command">

                <EditTextPreference
                    android:key="name_command1"
                    android:title="@string/set_command1"
                    android:dialogTitle="@string/set_command1"
                    android:defaultValue="@string/set_command1_"
                    android:summary="@string/set_command1_"
                    android:inputType="text"
                    />
                <EditTextPreference
                    android:key="code_command1"
                    android:title="@string/set_code1"
                    android:dialogTitle="@string/set_code1"
                    android:defaultValue="@string/set_code1_"
                    android:summary="@string/set_code1_"
                    android:inputType="text"
                    />

                <EditTextPreference
                    android:key="name_command2"
                    android:title="@string/set_command2"
                    android:dialogTitle="@string/set_command2"
                    android:defaultValue="@string/set_command2_"
                    android:summary="@string/set_command2_"
                    android:inputType="text"
                    />
                <EditTextPreference
                    android:key="code_command2"
                    android:title="@string/set_code2"
                    android:dialogTitle="@string/set_code2"
                    android:defaultValue="@string/set_code2_"
                    android:summary="@string/set_code2_"
                    android:inputType="text"
                    />

                <EditTextPreference
                    android:key="name_command3"
                    android:title="@string/set_command3"
                    android:dialogTitle="@string/set_command3"
                    android:defaultValue="@string/set_command3_"
                    android:summary="@string/set_command3_"
                    android:inputType="text"
                    />
                <EditTextPreference
                    android:key="code_command3"
                    android:title="@string/set_code3"
                    android:dialogTitle="@string/set_code3"
                    android:defaultValue="@string/set_code3_"
                    android:summary="@string/set_code3_"
                    android:inputType="text"
                    />

                <EditTextPreference
                    android:key="name_command4"
                    android:title="@string/set_command4"
                    android:dialogTitle="@string/set_command4"
                    android:defaultValue="@string/set_command4_"
                    android:summary="@string/set_command4_"
                    android:inputType="text"
                    />
                <EditTextPreference
                    android:key="code_command4"
                    android:title="@string/set_code4"
                    android:dialogTitle="@string/set_code4"
                    android:defaultValue="@string/set_code4_"
                    android:summary="@string/set_code4_"
                    android:inputType="text"
                    />

                <EditTextPreference
                    android:key="name_command5"
                    android:title="@string/set_command5"
                    android:dialogTitle="@string/set_command5"
                    android:defaultValue="@string/set_command5_"
                    android:summary="@string/set_command5_"
                    android:inputType="text"
                    />
                <EditTextPreference
                    android:key="code_command5"
                    android:title="@string/set_code5"
                    android:dialogTitle="@string/set_code5"
                    android:defaultValue="@string/set_code5_"
                    android:summary="@string/set_code5_"
                    android:inputType="text"
                    />
                <EditTextPreference
                    android:key="name_command6"
                    android:title="@string/set_command6"
                    android:dialogTitle="@string/set_command6"
                    android:defaultValue="@string/set_command6_"
                    android:summary="@string/set_command6_"
                    android:inputType="text"
                    />
                <EditTextPreference
                    android:key="code_command6"
                    android:title="@string/set_code6"
                    android:dialogTitle="@string/set_code6"
                    android:defaultValue="@string/set_code6_"
                    android:summary="@string/set_code6_"
                    android:inputType="text"
                    />

                <EditTextPreference
                    android:key="name_command7"
                    android:title="@string/set_command7"
                    android:dialogTitle="@string/set_command7"
                    android:defaultValue="@string/set_command7_"
                    android:summary="@string/set_command7_"
                    android:inputType="text"
                    />
                <EditTextPreference
                    android:key="code_command7"
                    android:title="@string/set_code7"
                    android:dialogTitle="@string/set_code7"
                    android:defaultValue="@string/set_code7_"
                    android:summary="@string/set_code7_"
                    android:inputType="text"
                    />

                <EditTextPreference
                    android:key="name_command8"
                    android:title="@string/set_command8"
                    android:dialogTitle="@string/set_command8"
                    android:defaultValue="@string/set_command8_"
                    android:summary="@string/set_command8_"
                    android:inputType="text"
                    />
                <EditTextPreference
                    android:key="code_command8"
                    android:title="@string/set_code8"
                    android:dialogTitle="@string/set_code8"
                    android:defaultValue="@string/set_code8_"
                    android:summary="@string/set_code8_"
                    android:inputType="text"
                    />

            </PreferenceCategory>

        </PreferenceScreen>
    </PreferenceCategory>

</PreferenceScreen>
