Commit 9eecf3b7f519d8965ef15d1ebaa3848b62eb0502
1 parent
e0103a02
修改民事,选举提示
Showing
4 changed files
with
54 additions
and
27 deletions
C5/app/src/main/java/com/sunvote/xpadapp/fragments/ElectionCustomFragment.java
... | ... | @@ -64,6 +64,8 @@ public class ElectionCustomFragment extends BaseFragment { |
64 | 64 | |
65 | 65 | private View resultLayout; |
66 | 66 | |
67 | + public TextView confirm_tv; | |
68 | + | |
67 | 69 | public void setInfo(BillInfo info, ArrayList<MultiTitleItem> subInfo, XPadApiInterface.VoteInfo voteInfo){ |
68 | 70 | this.bill = info; |
69 | 71 | this.aryContent = subInfo; |
... | ... | @@ -109,6 +111,12 @@ public class ElectionCustomFragment extends BaseFragment { |
109 | 111 | } |
110 | 112 | }); |
111 | 113 | |
114 | + confirm_panel.setOnClickListener(new OnClickListener() { | |
115 | + @Override | |
116 | + public void onClick(View v) { | |
117 | + ; | |
118 | + } | |
119 | + }); | |
112 | 120 | |
113 | 121 | btnPageUp.setOnClickListener(new OnClickListener() { |
114 | 122 | |
... | ... | @@ -149,6 +157,7 @@ public class ElectionCustomFragment extends BaseFragment { |
149 | 157 | public void onClick(View v) { |
150 | 158 | if(voteInfo.mode2_modify==0){ |
151 | 159 | showConfirm(); |
160 | + confirm_tv.setText("可选"+ voteInfo.limitFavor +"项,已选"+agreeVotedCount+"项,确定提交吗?"); | |
152 | 161 | }else{ |
153 | 162 | hideConfirm(); |
154 | 163 | confirmInfo(); |
... | ... | @@ -214,6 +223,9 @@ public class ElectionCustomFragment extends BaseFragment { |
214 | 223 | btnModify = (Button)view.findViewById(R.id.election_btn_modify); |
215 | 224 | btnConfirmOK = (Button) view.findViewById(R.id.singlevote_btn_confirm_ok); |
216 | 225 | btnConfirmCancel = (Button) view.findViewById(R.id.singlevote_btn_confirm_cancel); |
226 | + | |
227 | + confirm_tv = (TextView) view.findViewById(R.id.singlevote_confirm_textview); | |
228 | + | |
217 | 229 | } |
218 | 230 | |
219 | 231 | private void confirmInfo(){ | ... | ... |
C5/app/src/main/java/com/sunvote/xpadapp/fragments/ElectionFragment.java
... | ... | @@ -91,6 +91,7 @@ public class ElectionFragment extends BaseFragment { |
91 | 91 | private XPadApiInterface.VoteInfo.ElectInfo voteInfo; |
92 | 92 | private XPadApiInterface.VoteInfo vtInfo; |
93 | 93 | |
94 | + TextView confirm_tv; | |
94 | 95 | private RelativeLayout confirm_panel; |
95 | 96 | private String[] options; |
96 | 97 | private ImageButton btn_all_ok,btn_all_xx; |
... | ... | @@ -147,6 +148,7 @@ public class ElectionFragment extends BaseFragment { |
147 | 148 | resultLayout =(View) view.findViewById(R.id.result_layout); |
148 | 149 | tvSubmiting=(TextView) view.findViewById(R.id.submiting_tv); |
149 | 150 | confirm_panel = (RelativeLayout) view.findViewById(R.id.singlevote_confirm_panel); |
151 | + confirm_tv = (TextView) view.findViewById(R.id.singlevote_confirm_textview); | |
150 | 152 | |
151 | 153 | tv_all_ok=(TextView) view.findViewById(R.id.tv_all_ok); |
152 | 154 | tv_all_xx=(TextView) view.findViewById(R.id.tv_all_xx); |
... | ... | @@ -173,6 +175,13 @@ public class ElectionFragment extends BaseFragment { |
173 | 175 | } |
174 | 176 | }); |
175 | 177 | |
178 | + confirm_panel.setOnClickListener(new OnClickListener() { | |
179 | + @Override | |
180 | + public void onClick(View v) { | |
181 | + ; | |
182 | + } | |
183 | + }); | |
184 | + | |
176 | 185 | view.setOnClickListener(new OnClickListener() { |
177 | 186 | @Override |
178 | 187 | public void onClick(View v) { |
... | ... | @@ -273,6 +282,7 @@ public class ElectionFragment extends BaseFragment { |
273 | 282 | public void onClick(View v) { |
274 | 283 | if(voteInfo.modify==0){ |
275 | 284 | showConfirm(); |
285 | + confirm_tv.setText("可选"+ voteInfo.select +"人,已选"+votedCount+"人,确定提交吗?"); | |
276 | 286 | }else{ |
277 | 287 | hideConfirm(); |
278 | 288 | confirmInfo(); | ... | ... |
C5/app/src/main/res/layout/fragment_custom_election.xml
... | ... | @@ -221,9 +221,9 @@ |
221 | 221 | |
222 | 222 | <RelativeLayout |
223 | 223 | android:id="@+id/singlevote_confirm_panel" |
224 | - android:layout_width="fill_parent" | |
225 | - android:layout_height="fill_parent" | |
226 | - android:background="#ff000000" | |
224 | + android:layout_width="match_parent" | |
225 | + android:layout_height="match_parent" | |
226 | + android:background="#bb000000" | |
227 | 227 | android:visibility="gone"> |
228 | 228 | |
229 | 229 | <TextView |
... | ... | @@ -231,38 +231,42 @@ |
231 | 231 | android:layout_width="wrap_content" |
232 | 232 | android:layout_height="wrap_content" |
233 | 233 | android:layout_centerHorizontal="true" |
234 | - android:layout_marginTop="100dp" | |
234 | + android:layout_marginLeft="@dimen/content_margin" | |
235 | + android:layout_marginRight="@dimen/content_margin" | |
236 | + android:layout_marginTop="@dimen/px352dp" | |
235 | 237 | android:text="@string/cant_modify_confirm" |
236 | 238 | android:textColor="@color/white" |
237 | - android:textSize="@dimen/big_text_p4" /> | |
239 | + android:textSize="@dimen/px70dp" | |
240 | + android:textStyle="bold" /> | |
238 | 241 | |
239 | 242 | <Button |
240 | 243 | android:id="@+id/singlevote_btn_confirm_cancel" |
241 | - android:layout_width="@dimen/button_width" | |
242 | - android:layout_height="@dimen/button_heigh" | |
244 | + android:layout_width="@dimen/px360dp" | |
245 | + android:layout_height="@dimen/px110dp" | |
243 | 246 | android:layout_alignParentLeft="true" |
244 | 247 | android:layout_below="@id/singlevote_confirm_textview" |
245 | 248 | android:layout_marginLeft="200dp" |
246 | - android:layout_marginTop="@dimen/button_to_right" | |
247 | - android:background="@drawable/btn_signin_d" | |
249 | + android:layout_marginTop="@dimen/button_to_content" | |
250 | + android:background="#FBBF16" | |
248 | 251 | android:text="@string/cancel" |
249 | 252 | android:textColor="@color/white" |
250 | - android:textSize="@dimen/big_text_p5" | |
253 | + android:textSize="@dimen/px60dp" | |
251 | 254 | android:textStyle="bold" /> |
252 | 255 | |
253 | 256 | <Button |
254 | 257 | android:id="@+id/singlevote_btn_confirm_ok" |
255 | - android:layout_width="@dimen/button_width" | |
256 | - android:layout_height="@dimen/button_heigh" | |
258 | + android:layout_width="@dimen/px360dp" | |
259 | + android:layout_height="@dimen/px110dp" | |
257 | 260 | android:layout_alignParentRight="true" |
258 | 261 | android:layout_below="@id/singlevote_confirm_textview" |
259 | 262 | android:layout_marginRight="200dp" |
260 | - android:layout_marginTop="@dimen/button_to_right" | |
263 | + android:layout_marginTop="@dimen/button_to_content" | |
261 | 264 | android:background="@drawable/btn_agree" |
262 | 265 | android:text="@string/ok" |
263 | 266 | android:textColor="@color/white" |
264 | - android:textSize="@dimen/big_text_p5" | |
267 | + android:textSize="@dimen/px60dp" | |
265 | 268 | android:textStyle="bold" /> |
269 | + | |
266 | 270 | </RelativeLayout> |
267 | 271 | |
268 | 272 | ... | ... |
C5/app/src/main/res/layout/fragment_election.xml
... | ... | @@ -376,9 +376,9 @@ |
376 | 376 | |
377 | 377 | <RelativeLayout |
378 | 378 | android:id="@+id/singlevote_confirm_panel" |
379 | - android:layout_width="fill_parent" | |
380 | - android:layout_height="fill_parent" | |
381 | - android:background="#ff000000" | |
379 | + android:layout_width="match_parent" | |
380 | + android:layout_height="match_parent" | |
381 | + android:background="#bb000000" | |
382 | 382 | android:visibility="gone"> |
383 | 383 | |
384 | 384 | <TextView |
... | ... | @@ -388,30 +388,30 @@ |
388 | 388 | android:layout_centerHorizontal="true" |
389 | 389 | android:layout_marginLeft="@dimen/content_margin" |
390 | 390 | android:layout_marginRight="@dimen/content_margin" |
391 | - android:layout_marginTop="@dimen/button_to_content" | |
392 | - android:gravity="center" | |
391 | + android:layout_marginTop="@dimen/px352dp" | |
393 | 392 | android:text="@string/cant_modify_confirm" |
394 | 393 | android:textColor="@color/white" |
395 | - android:textSize="@dimen/big_text_p4" /> | |
394 | + android:textSize="@dimen/px70dp" | |
395 | + android:textStyle="bold" /> | |
396 | 396 | |
397 | 397 | <Button |
398 | 398 | android:id="@+id/singlevote_btn_confirm_cancel" |
399 | - android:layout_width="@dimen/button_width" | |
400 | - android:layout_height="@dimen/button_heigh" | |
399 | + android:layout_width="@dimen/px360dp" | |
400 | + android:layout_height="@dimen/px110dp" | |
401 | 401 | android:layout_alignParentLeft="true" |
402 | 402 | android:layout_below="@id/singlevote_confirm_textview" |
403 | 403 | android:layout_marginLeft="200dp" |
404 | 404 | android:layout_marginTop="@dimen/button_to_content" |
405 | - android:background="@drawable/btn_signin_d" | |
405 | + android:background="#FBBF16" | |
406 | 406 | android:text="@string/cancel" |
407 | 407 | android:textColor="@color/white" |
408 | - android:textSize="@dimen/big_text_p5" | |
408 | + android:textSize="@dimen/px60dp" | |
409 | 409 | android:textStyle="bold" /> |
410 | 410 | |
411 | 411 | <Button |
412 | 412 | android:id="@+id/singlevote_btn_confirm_ok" |
413 | - android:layout_width="@dimen/button_width" | |
414 | - android:layout_height="@dimen/button_heigh" | |
413 | + android:layout_width="@dimen/px360dp" | |
414 | + android:layout_height="@dimen/px110dp" | |
415 | 415 | android:layout_alignParentRight="true" |
416 | 416 | android:layout_below="@id/singlevote_confirm_textview" |
417 | 417 | android:layout_marginRight="200dp" |
... | ... | @@ -419,8 +419,9 @@ |
419 | 419 | android:background="@drawable/btn_agree" |
420 | 420 | android:text="@string/ok" |
421 | 421 | android:textColor="@color/white" |
422 | - android:textSize="@dimen/big_text_p5" | |
422 | + android:textSize="@dimen/px60dp" | |
423 | 423 | android:textStyle="bold" /> |
424 | + | |
424 | 425 | </RelativeLayout> |
425 | 426 | |
426 | 427 | <FrameLayout | ... | ... |