Blame view

C5/app/src/main/res/layout/fragment_election.xml 16.5 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"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
35
              android:textColor="@color/white"
c83dd29b   孙向锦   选举界面UI修改
36
              android:text=""
35544865   孙向锦   选举bug 修复
37
38
39
40
              android:textSize="@dimen/big_text_p5" />
  
          <Button
              android:id="@+id/list_election_item_add_btn"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
41
42
              android:layout_width="@dimen/px320dp"
              android:layout_height="@dimen/px100dp"
35544865   孙向锦   选举bug 修复
43
44
45
              android:background="@drawable/agree_selector"
              android:text="@string/select_other"
              android:textColor="@color/white"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
46
              android:layout_marginRight="@dimen/px40dp"
c83dd29b   孙向锦   选举界面UI修改
47
48
49
50
              android:textSize="@dimen/big_text_p5" />
  
      </LinearLayout>
  
fac86401   孙向锦   初始化C5 Vote
51
52
53
54
      <RelativeLayout
          android:id="@+id/election_pannal_OX"
          android:layout_width="match_parent"
          android:layout_height="@dimen/button_heigh"
c83dd29b   孙向锦   选举界面UI修改
55
56
57
          android:layout_below="@+id/line_panel"
          android:visibility="gone">
  
fac86401   孙向锦   初始化C5 Vote
58
59
60
61
          <TextView
              android:id="@+id/xx"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
62
              android:layout_centerInParent="true" />
fac86401   孙向锦   初始化C5 Vote
63
64
65
  
          <TextView
              android:id="@+id/tv_all_ok"
fac86401   孙向锦   初始化C5 Vote
66
67
68
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
fac86401   孙向锦   初始化C5 Vote
69
              android:layout_marginLeft="10dp"
c83dd29b   孙向锦   选举界面UI修改
70
71
72
              android:layout_toRightOf="@+id/xx"
              android:text="全赞成"
              android:textSize="@dimen/big_text_p4" />
fac86401   孙向锦   初始化C5 Vote
73
74
75
  
          <ImageButton
              android:id="@+id/btn_all_ok"
fac86401   孙向锦   初始化C5 Vote
76
              android:layout_width="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
77
78
79
80
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:layout_toRightOf="@+id/tv_all_ok"
              android:background="@drawable/btn_oo" />
fac86401   孙向锦   初始化C5 Vote
81
82
83
84
85
  
          <TextView
              android:id="@+id/tv_all_xx"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
fac86401   孙向锦   初始化C5 Vote
86
              android:layout_centerInParent="true"
c83dd29b   孙向锦   选举界面UI修改
87
              android:layout_marginLeft="@dimen/content_margin"
fac86401   孙向锦   初始化C5 Vote
88
89
              android:layout_toRightOf="@+id/btn_all_ok"
              android:text="全反对"
c83dd29b   孙向锦   选举界面UI修改
90
              android:textSize="@dimen/big_text_p4" />
fac86401   孙向锦   初始化C5 Vote
91
92
93
  
          <ImageButton
              android:id="@+id/btn_all_xx"
fac86401   孙向锦   初始化C5 Vote
94
              android:layout_width="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
95
96
97
98
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:layout_toRightOf="@+id/tv_all_xx"
              android:background="@drawable/btn_xx" />
fac86401   孙向锦   初始化C5 Vote
99
      </RelativeLayout>
c83dd29b   孙向锦   选举界面UI修改
100
  
fac86401   孙向锦   初始化C5 Vote
101
102
103
      <RelativeLayout
          android:id="@+id/election_pannal_bottom"
          android:layout_width="match_parent"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
104
          android:layout_height="@dimen/px138dp"
fac86401   孙向锦   初始化C5 Vote
105
106
107
          android:layout_alignParentBottom="true"
          android:alpha="0.9"
          android:background="@drawable/gray_alpha"
c83dd29b   孙向锦   选举界面UI修改
108
          android:visibility="visible">
35544865   孙向锦   选举bug 修复
109
  
fac86401   孙向锦   初始化C5 Vote
110
111
          <Button
              android:id="@+id/election_btn_confirm"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
112
113
              android:layout_width="@dimen/px420dp"
              android:layout_height="@dimen/px110dp"
c83dd29b   孙向锦   选举界面UI修改
114
              android:layout_centerInParent="true"
fac86401   孙向锦   初始化C5 Vote
115
              android:layout_marginRight="@dimen/content_margin"
c83dd29b   孙向锦   选举界面UI修改
116
              android:background="@drawable/oppos_selector"
fac86401   孙向锦   初始化C5 Vote
117
118
              android:text="@string/confirm_submit"
              android:textColor="@color/white"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
119
              android:textSize="@dimen/px60dp"
fac86401   孙向锦   初始化C5 Vote
120
121
122
123
              android:textStyle="bold" />
  
          <Button
              android:id="@+id/election_btn_modify"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
124
125
              android:layout_width="@dimen/px420dp"
              android:layout_height="@dimen/px110dp"
c83dd29b   孙向锦   选举界面UI修改
126
              android:layout_centerInParent="true"
fac86401   孙向锦   初始化C5 Vote
127
128
129
130
              android:layout_marginRight="@dimen/content_margin"
              android:background="@drawable/signin_selector"
              android:text="@string/modify"
              android:textColor="@color/white"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
131
              android:textSize="@dimen/px60dp"
c83dd29b   孙向锦   选举界面UI修改
132
133
              android:textStyle="bold"
              android:visibility="invisible" />
fac86401   孙向锦   初始化C5 Vote
134
      </RelativeLayout>
c83dd29b   孙向锦   选举界面UI修改
135
136
137
  
      <LinearLayout
          android:id="@+id/title_layout"
c83dd29b   孙向锦   选举界面UI修改
138
139
          android:layout_width="fill_parent"
          android:layout_height="60dp"
35544865   孙向锦   选举bug 修复
140
          android:layout_below="@id/election_pannal_OX"
c83dd29b   孙向锦   选举界面UI修改
141
          android:background="@color/white"
35544865   孙向锦   选举bug 修复
142
143
          android:orientation="horizontal"
          android:paddingRight="100dp">
c83dd29b   孙向锦   选举界面UI修改
144
145
146
147
148
  
          <TextView
              android:id="@+id/seq"
              android:layout_width="120dp"
              android:layout_height="wrap_content"
35544865   孙向锦   选举bug 修复
149
              android:layout_gravity="center_vertical"
c83dd29b   孙向锦   选举界面UI修改
150
151
              android:layout_marginLeft="150dp"
              android:gravity="center"
c83dd29b   孙向锦   选举界面UI修改
152
153
154
155
156
157
158
159
160
              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修改
161
              android:layout_marginLeft="40dp"
35544865   孙向锦   选举bug 修复
162
              android:layout_weight="1"
c83dd29b   孙向锦   选举界面UI修改
163
              android:gravity="left|center_vertical"
ba547d80   孙向锦   会议不存在UI更新
164
              android:text="侯选人"
c83dd29b   孙向锦   选举界面UI修改
165
166
167
              android:textColor="@color/red"
              android:textSize="@dimen/big_text_p6" />
  
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
168
          <LinearLayout
c83dd29b   孙向锦   选举界面UI修改
169
              android:layout_width="wrap_content"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
170
171
172
173
174
175
176
177
178
179
              android:layout_height="match_parent"
              android:orientation="horizontal"
              android:gravity="center|center_vertical">
              <TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_vertical"
                  android:text="@string/agree"
                  android:textColor="@color/red"
                  android:textSize="@dimen/big_text_p6" />
c83dd29b   孙向锦   选举界面UI修改
180
  
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
181
182
183
184
185
186
187
188
              <TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_vertical"
                  android:layout_marginLeft="@dimen/button_to_content"
                  android:text="@string/oppose"
                  android:textColor="@color/red"
                  android:textSize="@dimen/big_text_p6" />
c83dd29b   孙向锦   选举界面UI修改
189
  
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
190
191
192
193
194
195
196
197
198
199
200
              <TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_vertical"
                  android:layout_marginLeft="@dimen/button_to_content"
                  android:text="@string/delete"
                  android:textColor="@color/red"
                  android:textSize="@dimen/big_text_p6"
                  android:visibility="gone" />
  
          </LinearLayout>
c83dd29b   孙向锦   选举界面UI修改
201
202
203
204
205
  
      </LinearLayout>
  
      <View
          android:id="@+id/line"
c83dd29b   孙向锦   选举界面UI修改
206
207
          android:layout_width="match_parent"
          android:layout_height="2dp"
35544865   孙向锦   选举bug 修复
208
209
210
          android:layout_below="@id/title_layout"
          android:background="@color/votebakground" />
  
fac86401   孙向锦   初始化C5 Vote
211
212
213
214
215
      <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修改
216
          android:layout_below="@id/line"
fac86401   孙向锦   初始化C5 Vote
217
          android:layout_marginBottom="2dp"
fac86401   孙向锦   初始化C5 Vote
218
          android:divider="@color/votebakground"
c83dd29b   孙向锦   选举界面UI修改
219
220
221
222
223
224
225
226
227
228
229
          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"
a5a485e9   wutaian   修改提交,弃权,反对按钮样式,添加颜色
230
231
          android:orientation="vertical"
          android:visibility="gone">
c83dd29b   孙向锦   选举界面UI修改
232
233
234
235
236
  
          <ImageView
              android:id="@+id/election_pageup"
              android:layout_width="wrap_content"
              android:layout_height="0dp"
c83dd29b   孙向锦   选举界面UI修改
237
              android:layout_weight="1"
35544865   孙向锦   选举bug 修复
238
              android:padding="10dp"
c83dd29b   孙向锦   选举界面UI修改
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
              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 修复
259
      <RelativeLayout
fac86401   孙向锦   初始化C5 Vote
260
261
262
          android:id="@+id/election_add_other_panel"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
35544865   孙向锦   选举bug 修复
263
264
265
          android:layout_below="@id/line_panel"
          android:visibility="gone"
          android:background="#E5E5E5">
fac86401   孙向锦   初始化C5 Vote
266
  
fac86401   孙向锦   初始化C5 Vote
267
          <LinearLayout
35544865   孙向锦   选举bug 修复
268
              android:id="@+id/name_layout"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
269
270
271
272
273
274
275
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_marginLeft="@dimen/px20dp"
              android:layout_above="@+id/bottom_linear"
              android:layout_margin="@dimen/px20dp"
              android:gravity="bottom|center"
              android:orientation="vertical">
fac86401   孙向锦   初始化C5 Vote
276
  
35544865   孙向锦   选举bug 修复
277
278
              <TextView
                  android:layout_width="wrap_content"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
279
                  android:layout_height="@dimen/px120dp"
35544865   孙向锦   选举bug 修复
280
                  android:text="@string/input_other"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
281
282
283
                  android:layout_marginRight="@dimen/px90dp"
                  android:textColor="@color/black"
                  android:textSize="@dimen/px60dp" />
35544865   孙向锦   选举bug 修复
284
285
286
  
              <com.sunvote.xpadapp.base.ZanyEditText
                  android:id="@+id/election_add_edit"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
287
288
                  android:layout_width="@dimen/px787dp"
                  android:layout_height="@dimen/px120dp"
35544865   孙向锦   选举bug 修复
289
290
291
292
293
                  android:layout_marginLeft="20dp"
                  android:background="@color/white"
                  android:imeOptions="flagNoExtractUi"
                  android:lines="1"
                  android:textSize="@dimen/big_text_p4" />
fac86401   孙向锦   初始化C5 Vote
294
295
296
297
          </LinearLayout>
  
          <!--按钮-->
          <LinearLayout
35544865   孙向锦   选举bug 修复
298
299
300
301
302
              android:id="@+id/bottom_linear"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_centerHorizontal="true"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
303
304
              android:layout_marginBottom="@dimen/px300dp"
              android:layout_marginTop="@dimen/px30dp"
fac86401   孙向锦   初始化C5 Vote
305
306
307
              android:orientation="horizontal">
  
              <Button
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
308
309
310
311
312
313
                  android:id="@+id/election_add_edit_btn_ok"
                  android:layout_width="@dimen/px360dp"
                  android:layout_height="@dimen/px120dp"
                  android:layout_marginLeft="@dimen/px67dp"
                  android:background="@drawable/btn_agree"
                  android:text="@string/ok"
fac86401   孙向锦   初始化C5 Vote
314
315
316
317
318
                  android:textColor="@color/white"
                  android:textSize="@dimen/big_text_p4"
                  android:textStyle="bold" />
  
              <Button
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
319
320
321
322
323
324
                  android:id="@+id/election_add_edit_btn_cancel"
                  android:layout_width="@dimen/px360dp"
                  android:layout_height="@dimen/px120dp"
                  android:background="@drawable/oppos_selector"
                  android:layout_marginLeft="@dimen/px90dp"
                  android:text="@string/cancel"
fac86401   孙向锦   初始化C5 Vote
325
326
327
328
329
                  android:textColor="@color/white"
                  android:textSize="@dimen/big_text_p4"
                  android:textStyle="bold" />
          </LinearLayout>
  
35544865   孙向锦   选举bug 修复
330
331
332
333
          <RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_below="@id/name_layout"
35544865   孙向锦   选举bug 修复
334
335
336
              android:layout_margin="20dp"
              android:background="@color/white"
              android:gravity="center"
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
337
              android:visibility="invisible"
35544865   孙向锦   选举bug 修复
338
339
340
341
342
343
344
345
346
347
              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"/>
  
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
348
349
350
351
              <com.sunvote.xpadapp.base.PaletteView
                  android:id="@+id/draw_view"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent" />
35544865   孙向锦   选举bug 修复
352
  
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
353
354
355
356
357
358
359
360
361
              <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" />
35544865   孙向锦   选举bug 修复
362
  
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
363
          </RelativeLayout>
35544865   孙向锦   选举bug 修复
364
365
  
      </RelativeLayout>
c83dd29b   孙向锦   选举界面UI修改
366
  
691d9f67   wutaian   修改投票选举UI,相关UI的业务逻辑
367
  
fac86401   孙向锦   初始化C5 Vote
368
369
370
371
372
373
374
375
376
377
378
379
      <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
380
381
              android:layout_marginLeft="@dimen/content_margin"
              android:layout_marginRight="@dimen/content_margin"
c83dd29b   孙向锦   选举界面UI修改
382
              android:layout_marginTop="@dimen/button_to_content"
fac86401   孙向锦   初始化C5 Vote
383
              android:gravity="center"
c83dd29b   孙向锦   选举界面UI修改
384
385
              android:text="@string/cant_modify_confirm"
              android:textColor="@color/white"
fac86401   孙向锦   初始化C5 Vote
386
387
388
389
390
391
392
393
              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"
e129be23   孙向锦   添加一些修改选项
394
              android:layout_marginLeft="200dp"
fac86401   孙向锦   初始化C5 Vote
395
396
397
398
399
400
401
402
403
404
405
406
407
              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"
e129be23   孙向锦   添加一些修改选项
408
              android:layout_marginRight="200dp"
fac86401   孙向锦   初始化C5 Vote
409
410
411
412
413
414
415
              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修改
416
  
fac86401   孙向锦   初始化C5 Vote
417
418
419
420
      <TextView
          android:id="@+id/singlevote_tv_result"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
c83dd29b   孙向锦   选举界面UI修改
421
422
423
          android:layout_centerInParent="true"
          android:layout_marginRight="@dimen/content_margin"
          android:layout_marginTop="@dimen/content_margin"
fac86401   孙向锦   初始化C5 Vote
424
425
426
427
428
429
430
          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修改
431
          android:visibility="invisible" />
fac86401   孙向锦   初始化C5 Vote
432
  </RelativeLayout>