a
554325746@qq.com
2019-10-24 c61e776980f038bb0e195f7753a3d7e127d6028f
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:orientation="vertical">
 
        <Button
            android:id="@+id/search_colony"
            style="@style/setting_button"
            android:layout_width="@dimen/w156"
            android:layout_height="@dimen/h60"
            android:layout_centerInParent="true"
            android:layout_marginBottom="@dimen/h35"
            android:text="搜索集群"
            android:visibility="gone" />
 
        <LinearLayout
            android:visibility="gone"
            android:layout_width="match_parent"
            android:layout_height="@dimen/h60"
            android:layout_marginLeft="@dimen/w8"
            android:layout_marginTop="@dimen/h34"
            android:orientation="horizontal">
 
            <Button
                android:id="@+id/cluster_a"
                style="@style/colony_setting_button"
                android:background="@drawable/blue_button"
                android:text="集群A" />
 
            <Button
                android:id="@+id/cluster_b"
                style="@style/colony_setting_button"
                android:background="@drawable/blue_button"
                android:text="集群B" />
 
            <Button
                android:id="@+id/cluster_c"
                style="@style/colony_setting_button"
                android:background="@drawable/blue_button"
                android:text="集群C" />
 
            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_marginLeft="@dimen/w24"
                android:layout_weight="1">
 
                <Button
                    android:id="@+id/cluster_plus"
                    android:layout_width="@dimen/w68"
                    android:layout_height="@dimen/h60"
                    android:background="@drawable/blue_button"
                    android:text="+"
                    android:textColor="@color/white"
                    android:textSize="25sp" />
            </LinearLayout>
        </LinearLayout>
 
        <RadioGroup
            android:visibility="gone"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/w76"
            android:layout_marginTop="@dimen/h53"
            android:gravity="center_vertical"
            android:orientation="horizontal">
 
            <RadioButton
                android:id="@+id/only_allow"
                style="@style/setting_text"
                android:button="@drawable/radiobutton"
                android:checked="true"
                android:text="仅允许" />
 
            <RadioButton
                android:id="@+id/no_limit"
                style="@style/setting_text"
                android:layout_marginLeft="@dimen/w45"
                android:button="@drawable/radiobutton"
                android:text="不限制时间" />
        </RadioGroup>
 
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:orientation="horizontal">
 
            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="vertical">
 
                <GridLayout
                    android:layout_gravity="center_horizontal"
                    android:rowCount="3"
                    android:columnCount="2"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content">
                    <TextView
                        style="@style/device_label_style"
                        android:text="集群名称:" />
 
                    <EditText
                        android:id="@+id/cluster_name"
                        style="@style/edit_text"
                        android:layout_width="@dimen/w271"
                        android:hint="请输入集群名称"
                        android:paddingLeft="@dimen/w12"
                        android:text=""
                        android:textColorHint="#9fadc7"
                        android:textSize="@dimen/font_size_16" />
                    <TextView
                        style="@style/device_label_style"
                        android:text="密码:" />
 
                    <EditText
                        android:id="@+id/cluster_cookie"
                        style="@style/edit_text"
                        android:inputType="textPassword"
                        android:layout_width="@dimen/w271"
                        android:paddingLeft="@dimen/w12"
                        android:text=""
                        android:textSize="@dimen/font_size_16" />
 
                    <TextView
                        style="@style/device_label_style"
                        android:text="IP:" />
 
                    <EditText
                        android:id="@+id/cluster_ip"
                        style="@style/edit_text"
                        android:layout_width="@dimen/w271"
                        android:hint="请输入已知集群的节点IP"
                        android:paddingLeft="@dimen/w12"
                        android:text=""
                        android:textColorHint="#9fadc7"
                        android:textSize="@dimen/font_size_16" />
                </GridLayout>
 
                <LinearLayout
                    android:layout_gravity="center_horizontal"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_20"
                    android:orientation="horizontal">
 
 
                    <Button
                        android:paddingLeft="@dimen/w10"
                        android:paddingRight="@dimen/w10"
                        android:id="@+id/cluster_add"
                        android:layout_width="wrap_content"
                        style="@style/colony_setting_button"
                        android:background="@drawable/blue_button"
                        android:text="创建集群" />
 
                    <Button
                        android:paddingLeft="@dimen/w10"
                        android:paddingRight="@dimen/w10"
                        android:id="@+id/cluster_exit"
                        android:layout_width="wrap_content"
                        style="@style/colony_setting_button"
                        android:background="@drawable/blue_button"
                        android:text="退出集群" />
 
                </LinearLayout>
 
                <LinearLayout
                    android:visibility="gone"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dp_20"
                    android:orientation="horizontal">
 
                    <View
                        android:layout_width="0dp"
                        android:layout_height="0dp"
                        android:layout_weight="1" />
 
                    <Button
                        android:id="@+id/confirm_save"
                        style="@style/colony_setting_button"
                        android:background="@drawable/blue_button"
                        android:text="确定" />
 
                    <Button
                        android:id="@+id/cancel_save"
                        style="@style/colony_setting_button"
                        android:background="@drawable/blue_button"
                        android:text="取消" />
 
                    <View
                        android:layout_width="0dp"
                        android:layout_height="0dp"
                        android:layout_weight="1" />
                </LinearLayout>
            </LinearLayout>
 
            <LinearLayout
                android:layout_marginTop="@dimen/h10"
                android:layout_marginLeft="@dimen/w20"
                android:gravity="top"
                android:layout_width="@dimen/w450"
                android:layout_height="match_parent"
                android:orientation="vertical"
                >
                <include layout="@layout/cluster_setting_list_head" />
 
                <ListView
                    android:id="@+id/lv_device_list"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    />
            </LinearLayout>
        </LinearLayout>
        
 
 
        <com.basic.security.widget.ClusterRoundView
            android:visibility="gone"
            android:id="@+id/round_view"
            android:layout_width="@dimen/h216"
            android:layout_height="@dimen/h216"
            android:layout_centerInParent="true"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="@dimen/h30" />
        <!-- RoundView最大值为360,暂不支持修改-->
 
 
        <ImageView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginBottom="@dimen/w60"
            android:layout_marginLeft="@dimen/w76"
            android:layout_marginRight="@dimen/w76"
            android:layout_marginTop="@dimen/w60"
            android:background="@drawable/u1249"
            android:visibility="gone" />
 
 
    </LinearLayout>
</RelativeLayout>