1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4
+ xmlns : tools =" http://schemas.android.com/tools"
5
+ android : layout_width =" match_parent"
6
+ android : layout_height =" match_parent"
7
+ tools : context =" .GFW_setting_Activity" >
8
+
9
+
10
+ <ScrollView
11
+ android : layout_width =" match_parent"
12
+ android : layout_height =" match_parent"
13
+ android : padding =" 15dp"
14
+ app : layout_constraintTop_toTopOf =" parent" >
15
+
16
+ <LinearLayout
17
+ android : layout_width =" match_parent"
18
+ android : layout_height =" match_parent"
19
+ android : orientation =" vertical"
20
+ android : focusable =" true"
21
+ android : focusableInTouchMode =" true" >
22
+
23
+ <LinearLayout
24
+ android : layout_width =" match_parent"
25
+ android : layout_height =" wrap_content"
26
+ android : orientation =" vertical"
27
+ android : focusable =" true"
28
+ android : focusableInTouchMode =" true" >
29
+
30
+ <Switch
31
+ android : id =" @+id/use_fragment"
32
+ android : layout_width =" wrap_content"
33
+ android : layout_height =" wrap_content"
34
+ android : checked =" true"
35
+ android : padding =" 15dp"
36
+ android : text =" use fragment for all configs" />
37
+
38
+
39
+ <TableRow
40
+ android : layout_width =" match_parent"
41
+ android : layout_height =" wrap_content" >
42
+
43
+ <TextView
44
+ android : id =" @+id/textView7"
45
+ android : layout_width =" wrap_content"
46
+ android : layout_height =" wrap_content"
47
+ android : padding =" 15dp"
48
+ android : text =" ISP:" />
49
+
50
+ <Spinner
51
+ android : id =" @+id/spinner2"
52
+ android : layout_width =" match_parent"
53
+ android : layout_height =" wrap_content"
54
+ android : padding =" 15dp"
55
+ android : entries =" @array/isp_list" />
56
+
57
+ </TableRow >
58
+
59
+ <Switch
60
+ android : id =" @+id/remote_update"
61
+ android : layout_width =" wrap_content"
62
+ android : layout_height =" wrap_content"
63
+ android : checked =" true"
64
+ android : padding =" 15dp"
65
+ android : text =" use remote update" />
66
+
67
+ </LinearLayout >
68
+
69
+
70
+ <TableLayout
71
+ android : layout_width =" match_parent"
72
+ android : layout_height =" match_parent"
73
+ android : focusable =" true"
74
+ android : focusableInTouchMode =" true" >
75
+
76
+
77
+
78
+ <TableRow
79
+ android : layout_width =" match_parent"
80
+ android : layout_height =" wrap_content" >
81
+
82
+ <TextView
83
+ android : id =" @+id/textView2"
84
+ android : layout_width =" wrap_content"
85
+ android : layout_height =" wrap_content"
86
+ android : padding =" 15dp"
87
+ android : text =" num_fragment" />
88
+
89
+ <EditText
90
+ android : id =" @+id/num_frag"
91
+ android : layout_width =" match_parent"
92
+ android : layout_height =" wrap_content"
93
+ android : ems =" 10"
94
+ android : padding =" 15dp"
95
+ android : inputType =" number"
96
+ android : text =" 87" />
97
+
98
+ </TableRow >
99
+
100
+ <TableRow
101
+ android : layout_width =" match_parent"
102
+ android : layout_height =" match_parent" >
103
+
104
+ <TextView
105
+ android : id =" @+id/textView4"
106
+ android : layout_width =" wrap_content"
107
+ android : layout_height =" wrap_content"
108
+ android : padding =" 15dp"
109
+ android : text =" fragment_sleep" />
110
+
111
+ <EditText
112
+ android : id =" @+id/fragment_sleep"
113
+ android : layout_width =" match_parent"
114
+ android : layout_height =" wrap_content"
115
+ android : inputType =" number"
116
+ android : padding =" 15dp"
117
+ android : text =" 0.008" />
118
+
119
+ </TableRow >
120
+
121
+ <TableRow
122
+ android : layout_width =" match_parent"
123
+ android : layout_height =" match_parent" >
124
+
125
+ <CheckBox
126
+ android : id =" @+id/use_cdn_checkbox"
127
+ android : layout_width =" wrap_content"
128
+ android : layout_height =" wrap_content"
129
+ android : text =" CDN IP"
130
+ android : padding =" 15dp"
131
+ android : checked =" true" />
132
+
133
+ <Spinner
134
+ android : id =" @+id/spinner_cf_ip"
135
+ android : layout_width =" match_parent"
136
+ android : layout_height =" wrap_content"
137
+ android : padding =" 15dp"
138
+ android : entries =" @array/cf_ip_list" />
139
+ </TableRow >
140
+
141
+ <TableRow
142
+ android : layout_width =" match_parent"
143
+ android : layout_height =" match_parent" >
144
+
145
+ <CheckBox
146
+ android : id =" @+id/manual_ip_checkbox"
147
+ android : layout_width =" wrap_content"
148
+ android : layout_height =" wrap_content"
149
+ android : text =" manual IP"
150
+ android : padding =" 15dp"
151
+ android : checked =" false" />
152
+
153
+ <EditText
154
+ android : id =" @+id/CF_IP"
155
+ android : layout_width =" match_parent"
156
+ android : layout_height =" wrap_content"
157
+ android : ems =" 10"
158
+ android : inputType =" text"
159
+ android : padding =" 15dp"
160
+ android : text =" 203.13.32.183" />
161
+
162
+ </TableRow >
163
+
164
+
165
+ <TableRow
166
+ android : layout_width =" match_parent"
167
+ android : layout_height =" match_parent" >
168
+
169
+ <CheckBox
170
+ android : id =" @+id/config_ip_checkbox"
171
+ android : layout_width =" wrap_content"
172
+ android : layout_height =" wrap_content"
173
+ android : text =" Config IP"
174
+ android : padding =" 15dp"
175
+ android : checked =" false" />
176
+
177
+
178
+ <TextView
179
+ android : id =" @+id/config_ip_textview"
180
+ android : layout_width =" match_parent"
181
+ android : layout_height =" wrap_content"
182
+ android : ems =" 10"
183
+ android : inputType =" text"
184
+ android : padding =" 15dp"
185
+ android : text =" use config ip itself" />
186
+
187
+ </TableRow >
188
+
189
+
190
+ </TableLayout >
191
+
192
+
193
+
194
+
195
+ <Button
196
+ android : id =" @+id/button_save"
197
+ android : layout_width =" wrap_content"
198
+ android : layout_height =" wrap_content"
199
+ android : padding =" 15dp"
200
+ android : text =" Save Setting" />
201
+
202
+
203
+ </LinearLayout >
204
+ </ScrollView >
205
+
206
+
207
+ </androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments