Commit 9eecf3b7f519d8965ef15d1ebaa3848b62eb0502

Authored by wutaian
1 parent e0103a02

修改民事,选举提示

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