Blame view

C5/app/src/main/res/layout/fragment_election.xml 16 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
          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"
35544865   孙向锦   选举bug 修复
34
              android:layout_marginRight="20dp"
c83dd29b   孙向锦   选举界面UI修改
35
              android:text=""
35544865   孙向锦   选举bug 修复
36
37
38
39
40
41
42
43
44
              android:textSize="@dimen/big_text_p5" />
  
          <Button
              android:id="@+id/list_election_item_add_btn"
              android:layout_width="120dp"
              android:layout_height="50dp"
              android:background="@drawable/agree_selector"
              android:text="@string/select_other"
              android:textColor="@color/white"
c83dd29b   孙向锦   选举界面UI修改
45
46
47
48
49
              android:layout_marginRight="20dp"
              android:textSize="@dimen/big_text_p5" />
  
      </LinearLayout>
  
fac86401   孙向锦   初始化C5 Vote
50
51
52
53
      <RelativeLayout
          android:id="@+id/election_pannal_OX"
          android:layout_width="match_parent"
          android:layout_height="@dimen/button_heigh"
c83dd29b   孙向锦   选举界面UI修改
54
55
56
          android:layout_below="@+id/line_panel"
          android:visibility="gone">
  
fac86401   孙向锦   初始化C5 Vote
57
58
59
60
          <TextView
              android:id="@+id/xx"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
61
              android:layout_centerInParent="true" />
fac86401   孙向锦   初始化C5 Vote
62
63
64
  
          <TextView
              android:id="@+id/tv_all_ok"
fac86401   孙向锦   初始化C5 Vote
65
66
67
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
fac86401   孙向锦   初始化C5 Vote
68
              android:layout_marginLeft="10dp"
c83dd29b   孙向锦   选举界面UI修改
69
70
71
              android:layout_toRightOf="@+id/xx"
              android:text="全赞成"
              android:textSize="@dimen/big_text_p4" />
fac86401   孙向锦   初始化C5 Vote
72
73
74
  
          <ImageButton
              android:id="@+id/btn_all_ok"
fac86401   孙向锦   初始化C5 Vote
75
              android:layout_width="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
76
77
78
79
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:layout_toRightOf="@+id/tv_all_ok"
              android:background="@drawable/btn_oo" />
fac86401   孙向锦   初始化C5 Vote
80
81
82
83
84
  
          <TextView
              android:id="@+id/tv_all_xx"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
fac86401   孙向锦   初始化C5 Vote
85
              android:layout_centerInParent="true"
c83dd29b   孙向锦   选举界面UI修改
86
              android:layout_marginLeft="@dimen/content_margin"
fac86401   孙向锦   初始化C5 Vote
87
88
              android:layout_toRightOf="@+id/btn_all_ok"
              android:text="全反对"
c83dd29b   孙向锦   选举界面UI修改
89
              android:textSize="@dimen/big_text_p4" />
fac86401   孙向锦   初始化C5 Vote
90
91
92
  
          <ImageButton
              android:id="@+id/btn_all_xx"
fac86401   孙向锦   初始化C5 Vote
93
              android:layout_width="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
94
95
96
97
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:layout_toRightOf="@+id/tv_all_xx"
              android:background="@drawable/btn_xx" />
fac86401   孙向锦   初始化C5 Vote
98
      </RelativeLayout>
c83dd29b   孙向锦   选举界面UI修改
99
  
fac86401   孙向锦   初始化C5 Vote
100
101
102
103
104
105
106
      <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修改
107
          android:visibility="visible">
35544865   孙向锦   选举bug 修复
108
  
fac86401   孙向锦   初始化C5 Vote
109
110
111
112
          <Button
              android:id="@+id/election_btn_confirm"
              android:layout_width="@dimen/button_width"
              android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
113
              android:layout_centerInParent="true"
fac86401   孙向锦   初始化C5 Vote
114
              android:layout_marginRight="@dimen/content_margin"
c83dd29b   孙向锦   选举界面UI修改
115
              android:background="@drawable/oppos_selector"
fac86401   孙向锦   初始化C5 Vote
116
117
118
119
120
121
122
123
124
              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修改
125
              android:layout_centerInParent="true"
fac86401   孙向锦   初始化C5 Vote
126
127
128
129
130
              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修改
131
132
              android:textStyle="bold"
              android:visibility="invisible" />
fac86401   孙向锦   初始化C5 Vote
133
      </RelativeLayout>
c83dd29b   孙向锦   选举界面UI修改
134
135
136
  
      <LinearLayout
          android:id="@+id/title_layout"
c83dd29b   孙向锦   选举界面UI修改
137
138
          android:layout_width="fill_parent"
          android:layout_height="60dp"
35544865   孙向锦   选举bug 修复
139
          android:layout_below="@id/election_pannal_OX"
c83dd29b   孙向锦   选举界面UI修改
140
          android:background="@color/white"
35544865   孙向锦   选举bug 修复
141
142
          android:orientation="horizontal"
          android:paddingRight="100dp">
c83dd29b   孙向锦   选举界面UI修改
143
144
145
146
147
  
          <TextView
              android:id="@+id/seq"
              android:layout_width="120dp"
              android:layout_height="wrap_content"
35544865   孙向锦   选举bug 修复
148
              android:layout_gravity="center_vertical"
c83dd29b   孙向锦   选举界面UI修改
149
150
              android:layout_marginLeft="150dp"
              android:gravity="center"
c83dd29b   孙向锦   选举界面UI修改
151
152
153
154
155
156
157
158
159
              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"
c83dd29b   孙向锦   选举界面UI修改
160
              android:layout_marginLeft="40dp"
35544865   孙向锦   选举bug 修复
161
              android:layout_weight="1"
c83dd29b   孙向锦   选举界面UI修改
162
              android:gravity="left|center_vertical"
ba547d80   孙向锦   会议不存在UI更新
163
              android:text="侯选人"
c83dd29b   孙向锦   选举界面UI修改
164
165
166
167
168
169
              android:textColor="@color/red"
              android:textSize="@dimen/big_text_p6" />
  
          <TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
170
              android:layout_gravity="center_vertical"
35544865   孙向锦   选举bug 修复
171
172
173
174
              android:layout_marginLeft="@dimen/button_to_content"
              android:text="@string/agree"
              android:textColor="@color/red"
              android:textSize="@dimen/big_text_p6" />
c83dd29b   孙向锦   选举界面UI修改
175
176
177
178
  
          <TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
179
              android:layout_gravity="center_vertical"
35544865   孙向锦   选举bug 修复
180
181
182
183
              android:layout_marginLeft="@dimen/button_to_content"
              android:text="@string/oppose"
              android:textColor="@color/red"
              android:textSize="@dimen/big_text_p6" />
c83dd29b   孙向锦   选举界面UI修改
184
185
186
187
  
          <TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
188
              android:layout_gravity="center_vertical"
35544865   孙向锦   选举bug 修复
189
              android:layout_marginLeft="@dimen/button_to_content"
c83dd29b   孙向锦   选举界面UI修改
190
              android:text="@string/delete"
35544865   孙向锦   选举bug 修复
191
192
193
              android:textColor="@color/red"
              android:textSize="@dimen/big_text_p6"
              android:visibility="gone" />
c83dd29b   孙向锦   选举界面UI修改
194
195
196
197
198
  
      </LinearLayout>
  
      <View
          android:id="@+id/line"
c83dd29b   孙向锦   选举界面UI修改
199
200
          android:layout_width="match_parent"
          android:layout_height="2dp"
35544865   孙向锦   选举bug 修复
201
202
203
          android:layout_below="@id/title_layout"
          android:background="@color/votebakground" />
  
fac86401   孙向锦   初始化C5 Vote
204
205
206
207
208
      <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修改
209
          android:layout_below="@id/line"
fac86401   孙向锦   初始化C5 Vote
210
          android:layout_marginBottom="2dp"
fac86401   孙向锦   初始化C5 Vote
211
          android:divider="@color/votebakground"
c83dd29b   孙向锦   选举界面UI修改
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
          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"
c83dd29b   孙向锦   选举界面UI修改
229
              android:layout_weight="1"
35544865   孙向锦   选举bug 修复
230
              android:padding="10dp"
c83dd29b   孙向锦   选举界面UI修改
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
              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>
  
35544865   孙向锦   选举bug 修复
251
      <RelativeLayout
fac86401   孙向锦   初始化C5 Vote
252
253
254
          android:id="@+id/election_add_other_panel"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
35544865   孙向锦   选举bug 修复
255
256
257
          android:layout_below="@id/line_panel"
          android:visibility="gone"
          android:background="#E5E5E5">
fac86401   孙向锦   初始化C5 Vote
258
  
fac86401   孙向锦   初始化C5 Vote
259
          <LinearLayout
35544865   孙向锦   选举bug 修复
260
261
262
263
264
              android:id="@+id/name_layout"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="20dp"
              android:layout_marginTop="20dp"
c83dd29b   孙向锦   选举界面UI修改
265
              android:orientation="horizontal">
fac86401   孙向锦   初始化C5 Vote
266
  
35544865   孙向锦   选举bug 修复
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
              <TextView
                  android:layout_width="wrap_content"
                  android:layout_height="60dp"
                  android:text="@string/input_other"
                  android:textColor="@color/gray"
                  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_marginLeft="20dp"
                  android:background="@color/white"
                  android:imeOptions="flagNoExtractUi"
                  android:lines="1"
                  android:textSize="@dimen/big_text_p4" />
fac86401   孙向锦   初始化C5 Vote
283
284
285
286
          </LinearLayout>
  
          <!--按钮-->
          <LinearLayout
35544865   孙向锦   选举bug 修复
287
288
289
290
291
292
              android:id="@+id/bottom_linear"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_centerHorizontal="true"
              android:layout_marginBottom="20dp"
fac86401   孙向锦   初始化C5 Vote
293
294
295
296
297
298
              android:orientation="horizontal">
  
              <Button
                  android:id="@+id/election_add_edit_btn_cancel"
                  android:layout_width="@dimen/button_width"
                  android:layout_height="@dimen/button_heigh"
35544865   孙向锦   选举bug 修复
299
300
                  android:layout_marginRight="80dp"
                  android:background="@drawable/oppos_selector"
fac86401   孙向锦   初始化C5 Vote
301
302
303
304
305
306
307
308
309
                  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"
35544865   孙向锦   选举bug 修复
310
                  android:layout_marginLeft="80dp"
fac86401   孙向锦   初始化C5 Vote
311
312
313
314
315
316
317
                  android:background="@drawable/btn_agree"
                  android:text="@string/ok"
                  android:textColor="@color/white"
                  android:textSize="@dimen/big_text_p4"
                  android:textStyle="bold" />
          </LinearLayout>
  
35544865   孙向锦   选举bug 修复
318
319
320
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
          <RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_below="@id/name_layout"
              android:layout_above="@id/bottom_linear"
              android:layout_margin="20dp"
              android:background="@color/white"
              android:gravity="center"
              android:orientation="vertical">
  
              <TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerInParent="true"
                  android:text="另选代表姓名(手写)"
                  android:textSize="@dimen/big_text_p5"
                  android:textColor="@color/darkgrey"/>
  
                  <com.sunvote.xpadapp.base.PaletteView
                      android:id="@+id/draw_view"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent" />
  
                  <ImageView
                      android:id="@+id/clear_img"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_alignParentRight="true"
                      android:layout_alignParentTop="true"
                      android:layout_marginTop="20dp"
                      android:layout_marginRight="20dp"
                      android:src="@drawable/ic_clear" />
  
          </RelativeLayout>
  
  
  
      </RelativeLayout>
c83dd29b   孙向锦   选举界面UI修改
356
  
fac86401   孙向锦   初始化C5 Vote
357
358
359
360
361
362
363
364
365
366
367
368
      <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
369
370
              android:layout_marginLeft="@dimen/content_margin"
              android:layout_marginRight="@dimen/content_margin"
c83dd29b   孙向锦   选举界面UI修改
371
              android:layout_marginTop="@dimen/button_to_content"
fac86401   孙向锦   初始化C5 Vote
372
              android:gravity="center"
c83dd29b   孙向锦   选举界面UI修改
373
374
              android:text="@string/cant_modify_confirm"
              android:textColor="@color/white"
fac86401   孙向锦   初始化C5 Vote
375
376
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
              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修改
405
  
fac86401   孙向锦   初始化C5 Vote
406
407
408
409
      <TextView
          android:id="@+id/singlevote_tv_result"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
410
411
412
          android:layout_centerInParent="true"
          android:layout_marginRight="@dimen/content_margin"
          android:layout_marginTop="@dimen/content_margin"
fac86401   孙向锦   初始化C5 Vote
413
414
415
416
417
418
419
          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修改
420
          android:visibility="invisible" />
fac86401   孙向锦   初始化C5 Vote
421
  </RelativeLayout>