Blame view

C5/app/src/main/res/layout/fragment_election.xml 16.3 KB
fac86401   孙向锦   初始化C5 Vote
1
2
3
4
5
  <?xml version="1.0" encoding="utf-8"?>
  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/election_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
c83dd29b   孙向锦   选举界面UI修改
6
      android:background="@color/votebakground">
fac86401   孙向锦   初始化C5 Vote
7
  
c83dd29b   孙向锦   选举界面UI修改
8
9
      <LinearLayout
          android:id="@+id/line_panel"
fac86401   孙向锦   初始化C5 Vote
10
11
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
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
          android:background="@color/red"
          android:orientation="horizontal"
          android:paddingBottom="20dp"
          android:paddingLeft="20dp"
          android:paddingRight="80dp"
          android:paddingTop="20dp">
  
          <TextView
              android:id="@+id/election_title"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:ellipsize="end"
              android:lines="1"
              android:text="@string/sunvote_no_paper"
              android:textColor="@color/white"
              android:textSize="@dimen/big_text_p4" />
  
          <TextView
              android:id="@+id/election_info"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text=""
              android:layout_marginRight="20dp"
              android:textSize="@dimen/big_text_p5" />
  
      </LinearLayout>
  
fac86401   孙向锦   初始化C5 Vote
40
41
42
43
      <RelativeLayout
          android:id="@+id/election_pannal_OX"
          android:layout_width="match_parent"
          android:layout_height="@dimen/button_heigh"
c83dd29b   孙向锦   选举界面UI修改
44
45
46
          android:layout_below="@+id/line_panel"
          android:visibility="gone">
  
fac86401   孙向锦   初始化C5 Vote
47
48
49
50
          <TextView
              android:id="@+id/xx"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
51
              android:layout_centerInParent="true" />
fac86401   孙向锦   初始化C5 Vote
52
53
54
  
          <TextView
              android:id="@+id/tv_all_ok"
fac86401   孙向锦   初始化C5 Vote
55
56
57
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
fac86401   孙向锦   初始化C5 Vote
58
              android:layout_marginLeft="10dp"
c83dd29b   孙向锦   选举界面UI修改
59
60
61
              android:layout_toRightOf="@+id/xx"
              android:text="全赞成"
              android:textSize="@dimen/big_text_p4" />
fac86401   孙向锦   初始化C5 Vote
62
63
64
  
          <ImageButton
              android:id="@+id/btn_all_ok"
fac86401   孙向锦   初始化C5 Vote
65
              android:layout_width="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
66
67
68
69
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:layout_toRightOf="@+id/tv_all_ok"
              android:background="@drawable/btn_oo" />
fac86401   孙向锦   初始化C5 Vote
70
71
72
73
74
  
          <TextView
              android:id="@+id/tv_all_xx"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
fac86401   孙向锦   初始化C5 Vote
75
              android:layout_centerInParent="true"
c83dd29b   孙向锦   选举界面UI修改
76
              android:layout_marginLeft="@dimen/content_margin"
fac86401   孙向锦   初始化C5 Vote
77
78
              android:layout_toRightOf="@+id/btn_all_ok"
              android:text="全反对"
c83dd29b   孙向锦   选举界面UI修改
79
              android:textSize="@dimen/big_text_p4" />
fac86401   孙向锦   初始化C5 Vote
80
81
82
  
          <ImageButton
              android:id="@+id/btn_all_xx"
fac86401   孙向锦   初始化C5 Vote
83
              android:layout_width="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
84
85
86
87
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:layout_toRightOf="@+id/tv_all_xx"
              android:background="@drawable/btn_xx" />
fac86401   孙向锦   初始化C5 Vote
88
      </RelativeLayout>
c83dd29b   孙向锦   选举界面UI修改
89
  
fac86401   孙向锦   初始化C5 Vote
90
91
92
93
94
95
96
      <RelativeLayout
          android:id="@+id/election_pannal_bottom"
          android:layout_width="match_parent"
          android:layout_height="@dimen/linear_heigh"
          android:layout_alignParentBottom="true"
          android:alpha="0.9"
          android:background="@drawable/gray_alpha"
c83dd29b   孙向锦   选举界面UI修改
97
          android:visibility="visible">
fac86401   孙向锦   初始化C5 Vote
98
99
100
101
          <Button
              android:id="@+id/election_btn_confirm"
              android:layout_width="@dimen/button_width"
              android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
102
              android:layout_centerInParent="true"
fac86401   孙向锦   初始化C5 Vote
103
              android:layout_marginRight="@dimen/content_margin"
c83dd29b   孙向锦   选举界面UI修改
104
              android:background="@drawable/oppos_selector"
fac86401   孙向锦   初始化C5 Vote
105
106
107
108
109
110
111
112
113
              android:text="@string/confirm_submit"
              android:textColor="@color/white"
              android:textSize="@dimen/big_text_p5"
              android:textStyle="bold" />
  
          <Button
              android:id="@+id/election_btn_modify"
              android:layout_width="@dimen/button_width"
              android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
114
              android:layout_centerInParent="true"
fac86401   孙向锦   初始化C5 Vote
115
116
117
118
119
              android:layout_marginRight="@dimen/content_margin"
              android:background="@drawable/signin_selector"
              android:text="@string/modify"
              android:textColor="@color/white"
              android:textSize="@dimen/big_text_p5"
c83dd29b   孙向锦   选举界面UI修改
120
121
              android:textStyle="bold"
              android:visibility="invisible" />
fac86401   孙向锦   初始化C5 Vote
122
      </RelativeLayout>
c83dd29b   孙向锦   选举界面UI修改
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
  
      <LinearLayout
          android:id="@+id/title_layout"
          android:layout_below="@id/election_pannal_OX"
          android:layout_width="fill_parent"
          android:layout_height="60dp"
          android:paddingRight="100dp"
          android:background="@color/white"
          android:orientation="horizontal">
  
          <TextView
              android:id="@+id/seq"
              android:layout_width="120dp"
              android:layout_height="wrap_content"
              android:layout_marginLeft="150dp"
              android:gravity="center"
              android:layout_gravity="center_vertical"
              android:text="序号"
              android:textColor="@color/gray"
              android:textSize="@dimen/big_text_p6" />
  
          <TextView
              android:id="@+id/list_election_item_name"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_gravity="center_vertical"
              android:layout_weight="1"
              android:layout_marginLeft="40dp"
              android:gravity="left|center_vertical"
ba547d80   孙向锦   会议不存在UI更新
152
              android:text="侯选人"
c83dd29b   孙向锦   选举界面UI修改
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
              android:textColor="@color/red"
              android:textSize="@dimen/big_text_p6" />
  
          <TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textColor="@color/red"
              android:textSize="@dimen/big_text_p6"
              android:layout_marginLeft="@dimen/button_to_content"
              android:layout_gravity="center_vertical"
              android:text="@string/agree"/>
  
          <TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textColor="@color/red"
              android:textSize="@dimen/big_text_p6"
              android:layout_marginLeft="@dimen/button_to_content"
              android:layout_gravity="center_vertical"
              android:text="@string/oppose"/>
  
          <TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textColor="@color/red"
              android:textSize="@dimen/big_text_p6"
              android:layout_marginLeft="@dimen/button_to_content"
              android:layout_gravity="center_vertical"
              android:text="@string/delete"
              android:visibility="gone"/>
  
      </LinearLayout>
  
      <View
          android:id="@+id/line"
          android:layout_below="@id/title_layout"
          android:layout_width="match_parent"
          android:layout_height="2dp"
          android:background="@color/votebakground"/>
fac86401   孙向锦   初始化C5 Vote
192
193
194
195
196
      <ListView
          android:id="@+id/election_listview"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_above="@id/election_pannal_bottom"
c83dd29b   孙向锦   选举界面UI修改
197
          android:layout_below="@id/line"
fac86401   孙向锦   初始化C5 Vote
198
          android:layout_marginBottom="2dp"
fac86401   孙向锦   初始化C5 Vote
199
          android:divider="@color/votebakground"
c83dd29b   孙向锦   选举界面UI修改
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
          android:dividerHeight="2dp"></ListView>
  
      <LinearLayout
          android:layout_width="40dp"
          android:layout_height="150dp"
          android:layout_alignParentRight="true"
          android:layout_centerVertical="true"
          android:layout_marginBottom="50dp"
          android:layout_marginRight="20dp"
          android:layout_marginTop="50dp"
          android:background="@drawable/right_control"
          android:orientation="vertical">
  
          <ImageView
              android:id="@+id/election_pageup"
              android:layout_width="wrap_content"
              android:layout_height="0dp"
              android:padding="10dp"
              android:layout_weight="1"
              android:src="@drawable/page_up" />
  
          <ImageView
              android:id="@+id/election_pagedown"
              android:layout_width="wrap_content"
              android:layout_height="0dp"
              android:layout_weight="1"
              android:padding="10dp"
              android:src="@drawable/page_down" />
  
          <ImageView
              android:id="@+id/election_pagelast"
              android:layout_width="wrap_content"
              android:layout_height="0dp"
              android:layout_weight="1"
              android:padding="10dp"
              android:src="@drawable/page_frist" />
  
      </LinearLayout>
  
fac86401   孙向锦   初始化C5 Vote
239
240
241
242
243
244
245
246
247
248
249
250
      <LinearLayout
          android:id="@+id/election_add_other_panel"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@color/black"
          android:orientation="vertical"
          android:visibility="gone">
  
          <!--输入框-->
          <LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
c83dd29b   孙向锦   选举界面UI修改
251
252
              android:layout_weight="0.2"
              android:orientation="horizontal">
fac86401   孙向锦   初始化C5 Vote
253
254
255
256
257
258
259
  
              <LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_margin="50dp"
                  android:layout_weight="1"
                  android:background="@drawable/shape"
c83dd29b   孙向锦   选举界面UI修改
260
261
262
                  android:gravity="center"
                  android:orientation="vertical">
  
fac86401   孙向锦   初始化C5 Vote
263
264
265
266
                  <TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_centerHorizontal="true"
c83dd29b   孙向锦   选举界面UI修改
267
                      android:layout_marginBottom="20dp"
fac86401   孙向锦   初始化C5 Vote
268
269
                      android:text="@string/input_other"
                      android:textColor="@color/white"
fac86401   孙向锦   初始化C5 Vote
270
271
272
273
274
275
276
277
278
279
                      android:textSize="@dimen/big_text_p5" />
  
                  <com.sunvote.xpadapp.base.ZanyEditText
                      android:id="@+id/election_add_edit"
                      android:layout_width="200dp"
                      android:layout_height="60dp"
                      android:layout_marginTop="40dp"
                      android:background="#e8e8e8"
                      android:gravity="center"
                      android:imeOptions="flagNoExtractUi"
c83dd29b   孙向锦   选举界面UI修改
280
281
                      android:lines="1"
                      android:textSize="@dimen/big_text_p4" />
fac86401   孙向锦   初始化C5 Vote
282
283
284
285
286
              </LinearLayout>
  
              <LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
fac86401   孙向锦   初始化C5 Vote
287
                  android:layout_margin="30dp"
c83dd29b   孙向锦   选举界面UI修改
288
                  android:layout_weight="1"
fac86401   孙向锦   初始化C5 Vote
289
                  android:background="@drawable/shape"
c83dd29b   孙向锦   选举界面UI修改
290
291
                  android:gravity="center"
                  android:orientation="vertical">
fac86401   孙向锦   初始化C5 Vote
292
293
294
295
296
  
                  <TextView
                      android:layout_width="match_parent"
                      android:layout_height="50px"
                      android:layout_centerHorizontal="true"
c83dd29b   孙向锦   选举界面UI修改
297
                      android:gravity="center"
fac86401   孙向锦   初始化C5 Vote
298
299
                      android:text="@string/input_other"
                      android:textColor="@color/white"
c83dd29b   孙向锦   选举界面UI修改
300
                      android:textSize="@dimen/big_text_p5" />
fac86401   孙向锦   初始化C5 Vote
301
302
303
304
305
306
307
308
309
310
  
                  <FrameLayout
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_margin="5dp"
                      android:background="@drawable/shape">
  
                      <com.sunvote.xpadapp.base.PaletteView
                          android:id="@+id/draw_view"
                          android:layout_width="match_parent"
c83dd29b   孙向锦   选举界面UI修改
311
                          android:layout_height="match_parent" />
fac86401   孙向锦   初始化C5 Vote
312
313
314
315
316
  
                      <ImageView
                          android:id="@+id/clear_img"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
fac86401   孙向锦   初始化C5 Vote
317
318
                          android:layout_gravity="bottom|right"
                          android:layout_marginBottom="20dp"
c83dd29b   孙向锦   选举界面UI修改
319
320
                          android:layout_marginRight="20dp"
                          android:src="@drawable/ic_clear" />
fac86401   孙向锦   初始化C5 Vote
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
                  </FrameLayout>
  
              </LinearLayout>
          </LinearLayout>
  
          <!--按钮-->
          <LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_weight="0.8"
              android:gravity="center|right"
              android:orientation="horizontal">
  
              <Button
                  android:id="@+id/election_add_edit_btn_cancel"
                  android:layout_width="@dimen/button_width"
                  android:layout_height="@dimen/button_heigh"
                  android:layout_marginRight="@dimen/content_margin"
                  android:background="@drawable/btn_signin_d"
                  android:text="@string/cancel"
                  android:textColor="@color/white"
                  android:textSize="@dimen/big_text_p4"
                  android:textStyle="bold" />
  
              <Button
                  android:id="@+id/election_add_edit_btn_ok"
                  android:layout_width="@dimen/button_width"
                  android:layout_height="@dimen/button_heigh"
                  android:layout_marginRight="@dimen/content_margin"
                  android:background="@drawable/btn_agree"
                  android:text="@string/ok"
                  android:textColor="@color/white"
                  android:textSize="@dimen/big_text_p4"
                  android:textStyle="bold" />
          </LinearLayout>
  
      </LinearLayout>
c83dd29b   孙向锦   选举界面UI修改
358
  
fac86401   孙向锦   初始化C5 Vote
359
360
361
362
363
364
365
366
367
368
369
370
      <RelativeLayout
          android:id="@+id/singlevote_confirm_panel"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:background="#ff000000"
          android:visibility="gone">
  
          <TextView
              android:id="@+id/singlevote_confirm_textview"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
fac86401   孙向锦   初始化C5 Vote
371
372
              android:layout_marginLeft="@dimen/content_margin"
              android:layout_marginRight="@dimen/content_margin"
c83dd29b   孙向锦   选举界面UI修改
373
              android:layout_marginTop="@dimen/button_to_content"
fac86401   孙向锦   初始化C5 Vote
374
              android:gravity="center"
c83dd29b   孙向锦   选举界面UI修改
375
376
              android:text="@string/cant_modify_confirm"
              android:textColor="@color/white"
fac86401   孙向锦   初始化C5 Vote
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
              android:textSize="@dimen/big_text_p4" />
  
          <Button
              android:id="@+id/singlevote_btn_confirm_cancel"
              android:layout_width="@dimen/button_width"
              android:layout_height="@dimen/button_heigh"
              android:layout_alignParentLeft="true"
              android:layout_below="@id/singlevote_confirm_textview"
              android:layout_marginLeft="@dimen/button_to_left"
              android:layout_marginTop="@dimen/button_to_content"
              android:background="@drawable/btn_signin_d"
              android:text="@string/cancel"
              android:textColor="@color/white"
              android:textSize="@dimen/big_text_p5"
              android:textStyle="bold" />
  
          <Button
              android:id="@+id/singlevote_btn_confirm_ok"
              android:layout_width="@dimen/button_width"
              android:layout_height="@dimen/button_heigh"
              android:layout_alignParentRight="true"
              android:layout_below="@id/singlevote_confirm_textview"
              android:layout_marginRight="@dimen/button_to_right"
              android:layout_marginTop="@dimen/button_to_content"
              android:background="@drawable/btn_agree"
              android:text="@string/ok"
              android:textColor="@color/white"
              android:textSize="@dimen/big_text_p5"
              android:textStyle="bold" />
      </RelativeLayout>
c83dd29b   孙向锦   选举界面UI修改
407
  
fac86401   孙向锦   初始化C5 Vote
408
409
410
411
      <TextView
          android:id="@+id/singlevote_tv_result"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
412
413
414
          android:layout_centerInParent="true"
          android:layout_marginRight="@dimen/content_margin"
          android:layout_marginTop="@dimen/content_margin"
fac86401   孙向锦   初始化C5 Vote
415
416
417
418
419
420
421
          android:alpha="0.9"
          android:background="@drawable/voted_empty"
          android:gravity="center"
          android:rotation="-15"
          android:textColor="#ddff9933"
          android:textSize="@dimen/big_text_p2"
          android:textStyle="bold"
c83dd29b   孙向锦   选举界面UI修改
422
          android:visibility="invisible" />
fac86401   孙向锦   初始化C5 Vote
423
  </RelativeLayout>