summaryrefslogtreecommitdiff
path: root/main/src/main/res/layout/server_layout
blob: c6d11fe6d6f70f69cef631c9d0fffb72fd336f03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!--
  ~ Copyright (c) 2012-2014 Arne Schwabe
  ~ Distributed under the GNU GPL v2. For full terms see the file doc/LICENSE.txt
  -->

<RelativeLayout
    android:padding="5dp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    xmlns:android="http://schemas.android.com/apk/res/android">


    <TextView
        style="@style/item"
        android:id="@+id/port_label"
        android:text="@string/port"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true"
        android:textAppearance="?android:attr/textAppearanceSmall" />


    <TextView
        style="@style/item"
        android:text="@string/address"
        android:id="@+id/server_label"
        android:textAppearance="?android:attr/textAppearanceSmall" />


    <EditText
        android:id="@+id/portnumber"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true"
        android:layout_below="@id/port_label"
        android:layout_width="wrap_content"

        android:layout_height="wrap_content"
        android:inputType="numberDecimal"
        android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium"
        android:text="1194" />


    <EditText
        android:id="@+id/servername"
        android:singleLine="true"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:inputType="textUri"
        android:layout_below="@id/server_label"
        android:layout_toLeftOf="@id/portnumber"
        android:layout_toStartOf="@id/portnumber"
        android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium"
        android:text="openvpn.blinkt.de" />

    <TextView
        android:paddingTop="10dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/servername"
        android:id="@+id/protocol"
        android:text="Protocol" />

    <RadioGroup
        android:id="@+id/udptcpradiogroup"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/protocol"
        android:orientation="horizontal"
        android:paddingLeft="20dp">

        <RadioButton
            android:id="@+id/udp_proto"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="UDP" />

        <Space
            android:layout_width="20dp"
            android:layout_height="wrap_content" />

        <RadioButton
            android:id="@+id/tcp_proto"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="TCP" />
    </RadioGroup>

<!--    <TextView
        android:paddingTop="10dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/udptcpradiogroup"
        android:id="@+id/proxytext"
        android:text="Proxy" />

    <RadioGroup
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:id="@+id/proxygroup"
        android:paddingLeft="20dp"
        android:layout_below="@id/proxytext">

        <RadioButton
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="None" />

        <Space
            android:layout_width="10dp"
            android:layout_height="wrap_content" />

        <RadioButton
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="HTTP" />

        <Space
            android:layout_width="10dp"
            android:layout_height="wrap_content" />

        <RadioButton
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Socks" />
    </RadioGroup> -->


    <CheckBox
        android:paddingTop="10dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/udptcpradiogroup"
        android:id="@+id/use_customoptions"
        android:text="Custom Options" />

    <LinearLayout
        android:paddingLeft="10dp"
        android:paddingStart="10dp"
        android:layout_below="@id/use_customoptions"
        android:layout_width="wrap_content"
        android:orientation="vertical"
        android:layout_height="wrap_content">
        <TextView
            android:id="@+id/warnung_custom"
            android:text="Specify custom connection specific options. Use with care"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

        <EditText
            android:inputType="textMultiLine"
            android:id="@+id/customoptions"
            android:lines="5"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
    </LinearLayout>

    <Switch
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Enable"
        android:id="@+id/remoteSwitch"
        android:layout_gravity="right|bottom"
        android:layout_below="@+id/portnumber"
        android:layout_alignRight="@+id/portnumber"
        android:layout_alignEnd="@+id/portnumber" />


</RelativeLayout>