Commit e3db4ced1170c900d20c27c625775648edea7c52
1 parent
f5b4628b
修改投票,民事表决,新增民事表决结果
Showing
14 changed files
with
332 additions
and
238 deletions
C5/app/src/main/java/com/sunvote/xpadapp/fragments/ElectionCustomFragment.java
| ... | ... | @@ -4,6 +4,7 @@ import android.annotation.SuppressLint; |
| 4 | 4 | import android.content.Context; |
| 5 | 5 | import android.graphics.Color; |
| 6 | 6 | import android.os.Bundle; |
| 7 | +import android.text.Html; | |
| 7 | 8 | import android.util.Log; |
| 8 | 9 | import android.view.LayoutInflater; |
| 9 | 10 | import android.view.View; |
| ... | ... | @@ -34,7 +35,7 @@ public class ElectionCustomFragment extends BaseFragment { |
| 34 | 35 | private ArrayList<MultiTitleItem> aryContent = null; |
| 35 | 36 | |
| 36 | 37 | //标题,标题选举信息,提示信息,结果,页码 |
| 37 | - private TextView tvTitle,tvTitleInfo,tvTipInfo,tvResult; | |
| 38 | + private TextView tvTitle,tvTitleInfo,tvTipInfo,tvResult,tvSubmiting; | |
| 38 | 39 | private ListView listview; |
| 39 | 40 | private Button btnConfirm; |
| 40 | 41 | private Button btnModify; |
| ... | ... | @@ -60,6 +61,8 @@ public class ElectionCustomFragment extends BaseFragment { |
| 60 | 61 | //确认面板 |
| 61 | 62 | private RelativeLayout confirm_panel; |
| 62 | 63 | |
| 64 | + private View resultLayout; | |
| 65 | + | |
| 63 | 66 | public void setInfo(BillInfo info, ArrayList<MultiTitleItem> subInfo, XPadApiInterface.VoteInfo voteInfo){ |
| 64 | 67 | this.bill = info; |
| 65 | 68 | this.aryContent = subInfo; |
| ... | ... | @@ -104,6 +107,8 @@ public class ElectionCustomFragment extends BaseFragment { |
| 104 | 107 | ; |
| 105 | 108 | } |
| 106 | 109 | }); |
| 110 | + | |
| 111 | + | |
| 107 | 112 | btnPageUp.setOnClickListener(new OnClickListener() { |
| 108 | 113 | |
| 109 | 114 | @Override |
| ... | ... | @@ -150,6 +155,7 @@ public class ElectionCustomFragment extends BaseFragment { |
| 150 | 155 | } |
| 151 | 156 | }); |
| 152 | 157 | |
| 158 | + | |
| 153 | 159 | btnConfirmOK.setOnClickListener(new OnClickListener() { |
| 154 | 160 | @Override |
| 155 | 161 | public void onClick(View v) { |
| ... | ... | @@ -195,6 +201,8 @@ public class ElectionCustomFragment extends BaseFragment { |
| 195 | 201 | tvTipInfo= (TextView) view.findViewById(R.id.tv_tip_info); |
| 196 | 202 | |
| 197 | 203 | tvResult =(TextView) view.findViewById(R.id.singlevote_tv_result); |
| 204 | + tvSubmiting = (TextView) view.findViewById(R.id.submiting_tv); | |
| 205 | + resultLayout =(View) view.findViewById(R.id.result_layout); | |
| 198 | 206 | confirm_panel = (RelativeLayout) view.findViewById(R.id.singlevote_confirm_panel); |
| 199 | 207 | |
| 200 | 208 | btnPageUp = view.findViewById(R.id.election_pageup); |
| ... | ... | @@ -223,7 +231,12 @@ public class ElectionCustomFragment extends BaseFragment { |
| 223 | 231 | } |
| 224 | 232 | |
| 225 | 233 | showSecrecyOrDisable(); |
| 226 | - tvTipInfo.setText(getString(R.string.submiting)); | |
| 234 | + //tvTipInfo.setText(getString(R.string.submiting)); | |
| 235 | + tvSubmiting.setText(getString(R.string.submiting)); | |
| 236 | + tvSubmiting.setVisibility(View.VISIBLE); | |
| 237 | + tvResult.setVisibility(View.GONE); | |
| 238 | + resultLayout.setVisibility(View.VISIBLE); | |
| 239 | + this.listview.setEnabled(false); | |
| 227 | 240 | mMainActivity.presenter.submitVoteAllOK(); |
| 228 | 241 | } |
| 229 | 242 | |
| ... | ... | @@ -287,7 +300,7 @@ public class ElectionCustomFragment extends BaseFragment { |
| 287 | 300 | it.startVote = true; |
| 288 | 301 | it.modifyModel=true; |
| 289 | 302 | } |
| 290 | - tvTipInfo.setText(getString(R.string.submited_no_modify)); | |
| 303 | + //tvTipInfo.setText(getString(R.string.submited_no_modify)); | |
| 291 | 304 | }else{ |
| 292 | 305 | btnConfirm.setEnabled(false); |
| 293 | 306 | btnConfirm.setVisibility(View.INVISIBLE); |
| ... | ... | @@ -297,7 +310,7 @@ public class ElectionCustomFragment extends BaseFragment { |
| 297 | 310 | it.startVote = true; |
| 298 | 311 | it.modifyModel=false; |
| 299 | 312 | } |
| 300 | - tvTipInfo.setText(getString(R.string.submited)); | |
| 313 | + //tvTipInfo.setText(getString(R.string.submited)); | |
| 301 | 314 | } |
| 302 | 315 | mAdapter.notifyDataSetChanged(); |
| 303 | 316 | } |
| ... | ... | @@ -460,13 +473,19 @@ public class ElectionCustomFragment extends BaseFragment { |
| 460 | 473 | } |
| 461 | 474 | |
| 462 | 475 | private void showResult(){ |
| 463 | - tvResult.setText("已投票"); | |
| 476 | + //tvResult.setText("已投票"); | |
| 464 | 477 | tvResult.setVisibility(View.VISIBLE); |
| 478 | + resultLayout.setVisibility(View.VISIBLE); | |
| 479 | + tvSubmiting.setVisibility(View.GONE); | |
| 480 | + this.listview.setEnabled(false); | |
| 465 | 481 | } |
| 466 | 482 | |
| 467 | 483 | private void hideResult(){ |
| 468 | - tvResult.setText("已投票"); | |
| 469 | - tvResult.setVisibility(View.INVISIBLE); | |
| 484 | + //tvResult.setText("已投票"); | |
| 485 | + tvResult.setVisibility(View.GONE); | |
| 486 | + resultLayout.setVisibility(View.INVISIBLE); | |
| 487 | + tvSubmiting.setVisibility(View.GONE); | |
| 488 | + this.listview.setEnabled(true); | |
| 470 | 489 | } |
| 471 | 490 | |
| 472 | 491 | private void checkVoted() { |
| ... | ... | @@ -486,7 +505,10 @@ public class ElectionCustomFragment extends BaseFragment { |
| 486 | 505 | } |
| 487 | 506 | } |
| 488 | 507 | if(voteInfo!=null){ |
| 489 | - tvTitleInfo.setText(getString(R.string.agree_vote_ok) + voteInfo.limitFavor+ getString(R.string.fix) +",已投"+ agreeVotedCount + getString(R.string.fix)); | |
| 508 | + //tvTitleInfo.setText(getString(R.string.agree_vote_ok) + voteInfo.limitFavor+ getString(R.string.fix) +",已投"+ agreeVotedCount + getString(R.string.fix)); | |
| 509 | + String str= String.format("%s%s%s,已投<font color='#FFFF00'><big>%s</big></font>%s",getString(R.string.agree_vote_ok), | |
| 510 | + voteInfo.limitFavor,getString(R.string.fix),agreeVotedCount,getString(R.string.fix)); | |
| 511 | + tvTitleInfo.setText(Html.fromHtml(str)); | |
| 490 | 512 | } |
| 491 | 513 | mAdapter.notifyDataSetChanged(); |
| 492 | 514 | listview.invalidate(); | ... | ... |
C5/app/src/main/java/com/sunvote/xpadapp/fragments/ElectionFragment.java
| ... | ... | @@ -23,6 +23,7 @@ import android.widget.BaseAdapter; |
| 23 | 23 | import android.widget.Button; |
| 24 | 24 | import android.widget.ImageButton; |
| 25 | 25 | import android.widget.ImageView; |
| 26 | +import android.widget.LinearLayout; | |
| 26 | 27 | import android.widget.ListView; |
| 27 | 28 | import android.widget.RadioButton; |
| 28 | 29 | import android.widget.RadioGroup; |
| ... | ... | @@ -57,10 +58,12 @@ public class ElectionFragment extends BaseFragment { |
| 57 | 58 | BillInfo bill; |
| 58 | 59 | private TextView tvTitle; |
| 59 | 60 | private ListView listview; |
| 60 | - private TextView tvInfo; | |
| 61 | + private TextView tvInfo,tvSubmiting; | |
| 61 | 62 | private Button btnConfirm; |
| 62 | 63 | private Button btnModify; |
| 63 | 64 | private TextView tvResult; |
| 65 | + private View resultLayout; | |
| 66 | + | |
| 64 | 67 | |
| 65 | 68 | private PaletteView drawView; |
| 66 | 69 | |
| ... | ... | @@ -140,6 +143,8 @@ public class ElectionFragment extends BaseFragment { |
| 140 | 143 | bottomLayout = (RelativeLayout) view.findViewById(R.id.election_pannal_bottom); |
| 141 | 144 | addOtherLayout = view.findViewById(R.id.election_add_other_panel); |
| 142 | 145 | tvResult =(TextView) view.findViewById(R.id.singlevote_tv_result); |
| 146 | + resultLayout =(View) view.findViewById(R.id.result_layout); | |
| 147 | + tvSubmiting=(TextView) view.findViewById(R.id.submiting_tv); | |
| 143 | 148 | confirm_panel = (RelativeLayout) view.findViewById(R.id.singlevote_confirm_panel); |
| 144 | 149 | |
| 145 | 150 | tv_all_ok=(TextView) view.findViewById(R.id.tv_all_ok); |
| ... | ... | @@ -166,6 +171,7 @@ public class ElectionFragment extends BaseFragment { |
| 166 | 171 | |
| 167 | 172 | } |
| 168 | 173 | }); |
| 174 | + | |
| 169 | 175 | view.setOnClickListener(new OnClickListener() { |
| 170 | 176 | @Override |
| 171 | 177 | public void onClick(View v) { |
| ... | ... | @@ -441,7 +447,12 @@ public class ElectionFragment extends BaseFragment { |
| 441 | 447 | } |
| 442 | 448 | |
| 443 | 449 | showSecrecyOrDisable(); |
| 444 | - tvInfo.setText(getString(R.string.submiting)); | |
| 450 | + //tvInfo.setText(getString(R.string.submiting)); | |
| 451 | + tvSubmiting.setText(getString(R.string.submiting)); | |
| 452 | + tvSubmiting.setVisibility(View.VISIBLE); | |
| 453 | + tvResult.setVisibility(View.GONE); | |
| 454 | + resultLayout.setVisibility(View.VISIBLE); | |
| 455 | + this.listview.setEnabled(false); | |
| 445 | 456 | new Thread(new Runnable() { |
| 446 | 457 | public void run() { |
| 447 | 458 | mMainActivity.presenter.submitVote(XPadApi.AnsType_SelectOther,"0"); |
| ... | ... | @@ -576,7 +587,7 @@ public class ElectionFragment extends BaseFragment { |
| 576 | 587 | it.startVote = true; |
| 577 | 588 | it.modifyModel=true; |
| 578 | 589 | } |
| 579 | - tvInfo.setText(getString(R.string.submited_no_modify)); | |
| 590 | + //tvInfo.setText(getString(R.string.submited_no_modify)); | |
| 580 | 591 | }else{ |
| 581 | 592 | btnConfirm.setEnabled(false); |
| 582 | 593 | btnConfirm.setVisibility(View.INVISIBLE); |
| ... | ... | @@ -587,7 +598,7 @@ public class ElectionFragment extends BaseFragment { |
| 587 | 598 | it.startVote = true; |
| 588 | 599 | it.modifyModel=false; |
| 589 | 600 | } |
| 590 | - tvInfo.setText(getString(R.string.submited)); | |
| 601 | + //tvInfo.setText(getString(R.string.submited)); | |
| 591 | 602 | } |
| 592 | 603 | mAdapter.notifyDataSetChanged(); |
| 593 | 604 | } |
| ... | ... | @@ -806,13 +817,19 @@ public class ElectionFragment extends BaseFragment { |
| 806 | 817 | } |
| 807 | 818 | |
| 808 | 819 | private void showResult(){ |
| 809 | - tvResult.setText("已投票"); | |
| 820 | + //tvResult.setText("已投票"); | |
| 810 | 821 | tvResult.setVisibility(View.VISIBLE); |
| 822 | + resultLayout.setVisibility(View.VISIBLE); | |
| 823 | + tvSubmiting.setVisibility(View.GONE); | |
| 824 | + this.listview.setEnabled(false); | |
| 811 | 825 | } |
| 812 | 826 | |
| 813 | 827 | private void hideResult(){ |
| 814 | - tvResult.setText("已投票"); | |
| 815 | - tvResult.setVisibility(View.INVISIBLE); | |
| 828 | + //tvResult.setText("已投票"); | |
| 829 | + tvResult.setVisibility(View.GONE); | |
| 830 | + resultLayout.setVisibility(View.INVISIBLE); | |
| 831 | + tvSubmiting.setVisibility(View.GONE); | |
| 832 | + this.listview.setEnabled(true); | |
| 816 | 833 | } |
| 817 | 834 | |
| 818 | 835 | private void checkVoted() { | ... | ... |
C5/app/src/main/java/com/sunvote/xpadapp/fragments/ResultElectionFragment.java
| ... | ... | @@ -374,7 +374,6 @@ public class ResultElectionFragment extends BaseFragment { |
| 374 | 374 | holder = new ViewHolder(); |
| 375 | 375 | holder.tvNum = (TextView) convertView.findViewById(R.id.item_result_election_num); |
| 376 | 376 | holder.tvName = (TextView) convertView.findViewById(R.id.item_result_election_name); |
| 377 | - holder.tvVote = (TextView) convertView.findViewById(R.id.item_result_election_agree); | |
| 378 | 377 | holder.tvAgree = (TextView) convertView.findViewById(R.id.item_result_election_agree); |
| 379 | 378 | holder.tvOppose = (TextView) convertView.findViewById(R.id.item_result_election_oppose_num); |
| 380 | 379 | holder.tvAbstant = (TextView) convertView.findViewById(R.id.item_result_election_abstant_num); |
| ... | ... | @@ -414,9 +413,9 @@ public class ResultElectionFragment extends BaseFragment { |
| 414 | 413 | int width = metrics.widthPixels/5-80; |
| 415 | 414 | if(!TextUtils.isEmpty(it.name)){ |
| 416 | 415 | TextViewUtils.adjustTvTextSize(holder.tvName,width,it.name); |
| 417 | - } | |
| 416 | + } | |
| 418 | 417 | holder.tvName.setText(it.name); |
| 419 | - holder.tvName.setGravity(Gravity.CENTER_VERTICAL); | |
| 418 | + //holder.tvName.setGravity(Gravity.CENTER_VERTICAL); | |
| 420 | 419 | holder.tvAgree.setText(String.valueOf(it.agreeNum)); |
| 421 | 420 | holder.tvOppose.setText(String.valueOf(it.opposeNum)); |
| 422 | 421 | holder.tvAbstant.setText(String.valueOf(it.abstantNum)); |
| ... | ... | @@ -430,13 +429,16 @@ public class ResultElectionFragment extends BaseFragment { |
| 430 | 429 | holder.tvResult.setText(getString(R.string.pass)); |
| 431 | 430 | } |
| 432 | 431 | } |
| 432 | + | |
| 433 | + if (position % 2 == 0) { | |
| 434 | + convertView.setBackgroundColor(getResources().getColor(R.color.blue2)); | |
| 435 | + } | |
| 433 | 436 | return convertView; |
| 434 | 437 | } |
| 435 | 438 | |
| 436 | 439 | public final class ViewHolder { |
| 437 | 440 | public TextView tvNum; |
| 438 | 441 | public TextView tvName; |
| 439 | - public TextView tvVote; | |
| 440 | 442 | public TextView tvAgree; |
| 441 | 443 | public TextView tvOppose; |
| 442 | 444 | public TextView tvAbstant; | ... | ... |
C5/app/src/main/res/drawable/oo_selector.xml
| ... | ... | @@ -2,32 +2,33 @@ |
| 2 | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > |
| 3 | 3 | |
| 4 | 4 | <item android:state_checked="true" android:state_window_focused="false" |
| 5 | - android:drawable="@drawable/btn_oo_s" /> | |
| 5 | + android:drawable="@drawable/ic_btn_oo_s" /> | |
| 6 | 6 | <item android:state_checked="false" android:state_window_focused="false" |
| 7 | - android:drawable="@drawable/btn_oo" /> | |
| 7 | + android:drawable="@drawable/ic_btn_oo" /> | |
| 8 | 8 | |
| 9 | 9 | <item android:state_checked="true" android:state_window_focused="true" |
| 10 | - android:drawable="@drawable/btn_oo_s" /> | |
| 10 | + android:drawable="@drawable/ic_btn_oo_s" /> | |
| 11 | 11 | <item android:state_checked="false" android:state_window_focused="true" |
| 12 | - android:drawable="@drawable/btn_oo" /> | |
| 12 | + android:drawable="@drawable/ic_btn_oo" /> | |
| 13 | 13 | |
| 14 | 14 | <item android:state_checked="true" android:state_pressed="true" |
| 15 | - android:drawable="@drawable/btn_oo_s" /> | |
| 15 | + android:drawable="@drawable/ic_btn_oo_s" /> | |
| 16 | 16 | <item android:state_checked="false" android:state_pressed="true" |
| 17 | - android:drawable="@drawable/btn_oo" /> | |
| 17 | + android:drawable="@drawable/ic_btn_oo" /> | |
| 18 | 18 | |
| 19 | 19 | <item android:state_checked="true" android:state_focused="true" |
| 20 | - android:drawable="@drawable/btn_oo_s" /> | |
| 20 | + android:drawable="@drawable/ic_btn_oo_s" /> | |
| 21 | 21 | <item android:state_checked="false" android:state_focused="true" |
| 22 | - android:drawable="@drawable/btn_oo" /> | |
| 22 | + android:drawable="@drawable/ic_btn_oo" /> | |
| 23 | 23 | |
| 24 | 24 | <item android:state_checked="true" android:state_focused="false" |
| 25 | - android:drawable="@drawable/btn_oo_s" /> | |
| 25 | + android:drawable="@drawable/ic_btn_oo_s" /> | |
| 26 | 26 | <item android:state_checked="false" android:state_focused="false" |
| 27 | - android:drawable="@drawable/btn_oo" /> | |
| 28 | - | |
| 29 | - <item android:state_checked="false" android:drawable="@drawable/btn_oo" /> | |
| 30 | - <item android:state_checked="true" android:drawable="@drawable/btn_oo_s" /> | |
| 27 | + android:drawable="@drawable/ic_btn_oo" /> | |
| 28 | + | |
| 29 | + | |
| 30 | + <item android:state_checked="false" android:drawable="@drawable/ic_btn_oo" /> | |
| 31 | + <item android:state_checked="true" android:drawable="@drawable/ic_btn_oo_s" /> | |
| 31 | 32 | |
| 32 | 33 | |
| 33 | 34 | ... | ... |
C5/app/src/main/res/drawable/xx_selector.xml
| ... | ... | @@ -3,32 +3,32 @@ |
| 3 | 3 | |
| 4 | 4 | |
| 5 | 5 | <item android:state_checked="true" android:state_window_focused="false" |
| 6 | - android:drawable="@drawable/btn_xx_s" /> | |
| 6 | + android:drawable="@drawable/ic_btn_xx_s" /> | |
| 7 | 7 | <item android:state_checked="false" android:state_window_focused="false" |
| 8 | - android:drawable="@drawable/btn_xx" /> | |
| 8 | + android:drawable="@drawable/ic_btn_xx" /> | |
| 9 | 9 | |
| 10 | 10 | <item android:state_checked="true" android:state_window_focused="true" |
| 11 | - android:drawable="@drawable/btn_xx_s" /> | |
| 11 | + android:drawable="@drawable/ic_btn_xx_s" /> | |
| 12 | 12 | <item android:state_checked="false" android:state_window_focused="true" |
| 13 | - android:drawable="@drawable/btn_xx" /> | |
| 13 | + android:drawable="@drawable/ic_btn_xx" /> | |
| 14 | 14 | |
| 15 | 15 | <item android:state_checked="true" android:state_pressed="true" |
| 16 | - android:drawable="@drawable/btn_xx_s" /> | |
| 16 | + android:drawable="@drawable/ic_btn_xx_s" /> | |
| 17 | 17 | <item android:state_checked="false" android:state_pressed="true" |
| 18 | - android:drawable="@drawable/btn_xx" /> | |
| 18 | + android:drawable="@drawable/ic_btn_xx" /> | |
| 19 | 19 | |
| 20 | 20 | <item android:state_checked="true" android:state_focused="true" |
| 21 | - android:drawable="@drawable/btn_xx_s" /> | |
| 21 | + android:drawable="@drawable/ic_btn_xx_s" /> | |
| 22 | 22 | <item android:state_checked="false" android:state_focused="true" |
| 23 | - android:drawable="@drawable/btn_xx" /> | |
| 23 | + android:drawable="@drawable/ic_btn_xx" /> | |
| 24 | 24 | |
| 25 | 25 | <item android:state_checked="true" android:state_focused="false" |
| 26 | - android:drawable="@drawable/btn_xx_s" /> | |
| 26 | + android:drawable="@drawable/ic_btn_xx_s" /> | |
| 27 | 27 | <item android:state_checked="false" android:state_focused="false" |
| 28 | - android:drawable="@drawable/btn_xx" /> | |
| 28 | + android:drawable="@drawable/ic_btn_xx" /> | |
| 29 | 29 | |
| 30 | - <item android:state_checked="false" android:drawable="@drawable/btn_xx" /> | |
| 31 | - <item android:state_checked="true" android:drawable="@drawable/btn_xx_s" /> | |
| 30 | + <item android:state_checked="false" android:drawable="@drawable/ic_btn_xx" /> | |
| 31 | + <item android:state_checked="true" android:drawable="@drawable/ic_btn_xx_s" /> | |
| 32 | 32 | |
| 33 | 33 | |
| 34 | 34 | ... | ... |
C5/app/src/main/res/layout/dialog_service.xml
| ... | ... | @@ -12,6 +12,33 @@ |
| 12 | 12 | android:textStyle="bold" |
| 13 | 13 | android:textSize="18sp"/> |
| 14 | 14 | <LinearLayout |
| 15 | + android:id="@+id/button_line" | |
| 16 | + android:layout_width="530dp" | |
| 17 | + android:layout_height="40dp" | |
| 18 | + android:layout_alignParentBottom="true" | |
| 19 | + android:orientation="horizontal"> | |
| 20 | + | |
| 21 | + <View | |
| 22 | + android:layout_width="0dp" | |
| 23 | + android:layout_height="wrap_content" | |
| 24 | + android:layout_weight="1" /> | |
| 25 | + | |
| 26 | + <Button | |
| 27 | + android:id="@+id/cancel" | |
| 28 | + android:layout_width="100dp" | |
| 29 | + android:layout_height="match_parent" | |
| 30 | + android:layout_marginRight="10dp" | |
| 31 | + android:visibility="invisible" | |
| 32 | + android:text="@string/cancel" /> | |
| 33 | + | |
| 34 | + <Button | |
| 35 | + android:id="@+id/submit" | |
| 36 | + android:layout_width="100dp" | |
| 37 | + android:layout_height="match_parent" | |
| 38 | + android:layout_marginRight="10dp" | |
| 39 | + android:text="@string/ok" /> | |
| 40 | + </LinearLayout> | |
| 41 | + <LinearLayout | |
| 15 | 42 | android:layout_width="530dp" |
| 16 | 43 | android:layout_height="250dp" |
| 17 | 44 | android:layout_marginTop="10dp" |
| ... | ... | @@ -213,31 +240,4 @@ |
| 213 | 240 | android:layout_weight="1"></LinearLayout> |
| 214 | 241 | </LinearLayout> |
| 215 | 242 | </LinearLayout> |
| 216 | - <LinearLayout | |
| 217 | - android:id="@+id/button_line" | |
| 218 | - android:layout_width="530dp" | |
| 219 | - android:layout_height="40dp" | |
| 220 | - android:layout_alignParentBottom="true" | |
| 221 | - android:orientation="horizontal"> | |
| 222 | - | |
| 223 | - <View | |
| 224 | - android:layout_width="0dp" | |
| 225 | - android:layout_height="wrap_content" | |
| 226 | - android:layout_weight="1" /> | |
| 227 | - | |
| 228 | - <Button | |
| 229 | - android:id="@+id/cancel" | |
| 230 | - android:layout_width="100dp" | |
| 231 | - android:layout_height="match_parent" | |
| 232 | - android:layout_marginRight="10dp" | |
| 233 | - android:visibility="invisible" | |
| 234 | - android:text="@string/cancel" /> | |
| 235 | - | |
| 236 | - <Button | |
| 237 | - android:id="@+id/submit" | |
| 238 | - android:layout_width="100dp" | |
| 239 | - android:layout_height="match_parent" | |
| 240 | - android:layout_marginRight="10dp" | |
| 241 | - android:text="@string/ok" /> | |
| 242 | - </LinearLayout> | |
| 243 | 243 | </LinearLayout> | ... | ... |
C5/app/src/main/res/layout/fragment_custom_election.xml
| ... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 | android:id="@+id/line_panel" |
| 10 | 10 | android:layout_width="match_parent" |
| 11 | 11 | android:layout_height="wrap_content" |
| 12 | - android:background="@color/red" | |
| 12 | + android:background="@color/red2" | |
| 13 | 13 | android:orientation="horizontal" |
| 14 | 14 | android:paddingBottom="20dp" |
| 15 | 15 | android:paddingLeft="20dp" |
| ... | ... | @@ -22,18 +22,21 @@ |
| 22 | 22 | android:layout_height="wrap_content" |
| 23 | 23 | android:layout_weight="1" |
| 24 | 24 | android:ellipsize="end" |
| 25 | + android:textStyle="bold" | |
| 25 | 26 | android:lines="1" |
| 26 | 27 | android:text="票决民生实事项目" |
| 27 | 28 | android:textColor="@color/white" |
| 28 | - android:textSize="@dimen/big_text_p4" /> | |
| 29 | + android:textSize="@dimen/px60dp" /> | |
| 29 | 30 | |
| 30 | 31 | <TextView |
| 31 | 32 | android:id="@+id/title_info" |
| 32 | 33 | android:layout_width="wrap_content" |
| 33 | 34 | android:layout_height="wrap_content" |
| 34 | 35 | android:text="" |
| 36 | + android:textStyle="bold" | |
| 35 | 37 | android:layout_marginRight="20dp" |
| 36 | - android:textSize="@dimen/big_text_p5" /> | |
| 38 | + android:textColor="@color/white" | |
| 39 | + android:textSize="@dimen/px40dp" /> | |
| 37 | 40 | |
| 38 | 41 | </LinearLayout> |
| 39 | 42 | |
| ... | ... | @@ -51,9 +54,10 @@ |
| 51 | 54 | android:layout_alignParentLeft="true" |
| 52 | 55 | android:layout_centerVertical="true" |
| 53 | 56 | android:gravity="center" |
| 57 | + android:textStyle="bold" | |
| 54 | 58 | android:text="序号" |
| 55 | 59 | android:textColor="@color/gray" |
| 56 | - android:textSize="@dimen/big_text_p5" /> | |
| 60 | + android:textSize="@dimen/px40dp" /> | |
| 57 | 61 | |
| 58 | 62 | <!-- <View |
| 59 | 63 | android:id="@+id/view_line" |
| ... | ... | @@ -64,14 +68,15 @@ |
| 64 | 68 | |
| 65 | 69 | <TextView |
| 66 | 70 | android:id="@+id/tv_name" |
| 67 | - android:layout_width="400dp" | |
| 71 | + android:layout_width="@dimen/px1000dp" | |
| 68 | 72 | android:layout_height="wrap_content" |
| 69 | 73 | android:layout_centerVertical="true" |
| 70 | 74 | android:layout_toRightOf="@id/tv_num" |
| 71 | 75 | android:gravity="center" |
| 76 | + android:textStyle="bold" | |
| 72 | 77 | android:text="项目" |
| 73 | 78 | android:textColor="@color/red" |
| 74 | - android:textSize="@dimen/big_text_p5" /> | |
| 79 | + android:textSize="@dimen/px40dp" /> | |
| 75 | 80 | |
| 76 | 81 | <!-- <View |
| 77 | 82 | android:layout_width="2px" |
| ... | ... | @@ -85,11 +90,12 @@ |
| 85 | 90 | android:layout_height="wrap_content" |
| 86 | 91 | android:gravity="center" |
| 87 | 92 | android:layout_centerVertical="true" |
| 93 | + android:textStyle="bold" | |
| 88 | 94 | android:text="赞成" |
| 89 | 95 | android:textColor="@color/red" |
| 90 | 96 | android:layout_toRightOf="@id/tv_name" |
| 91 | - android:layout_marginLeft="50dp" | |
| 92 | - android:textSize="@dimen/big_text_p5" /> | |
| 97 | + android:layout_marginLeft="@dimen/px300dp" | |
| 98 | + android:textSize="@dimen/px40dp" /> | |
| 93 | 99 | |
| 94 | 100 | <TextView |
| 95 | 101 | android:id="@+id/tv_oppose" |
| ... | ... | @@ -98,10 +104,11 @@ |
| 98 | 104 | android:gravity="center" |
| 99 | 105 | android:layout_centerVertical="true" |
| 100 | 106 | android:text="反对" |
| 107 | + android:visibility="gone" | |
| 101 | 108 | android:textColor="@color/red" |
| 102 | 109 | android:layout_toRightOf="@id/tv_agree" |
| 103 | 110 | android:layout_marginLeft="40dp" |
| 104 | - android:textSize="@dimen/big_text_p5" /> | |
| 111 | + android:textSize="@dimen/px40dp" /> | |
| 105 | 112 | |
| 106 | 113 | <TextView |
| 107 | 114 | android:id="@+id/tv_abstain" |
| ... | ... | @@ -110,10 +117,11 @@ |
| 110 | 117 | android:gravity="center" |
| 111 | 118 | android:layout_centerVertical="true" |
| 112 | 119 | android:text="弃权" |
| 120 | + android:visibility="gone" | |
| 113 | 121 | android:textColor="@color/red" |
| 114 | 122 | android:layout_toRightOf="@id/tv_oppose" |
| 115 | 123 | android:layout_marginLeft="40dp" |
| 116 | - android:textSize="@dimen/big_text_p5" /> | |
| 124 | + android:textSize="@dimen/px40dp" /> | |
| 117 | 125 | |
| 118 | 126 | </RelativeLayout> |
| 119 | 127 | |
| ... | ... | @@ -129,27 +137,28 @@ |
| 129 | 137 | |
| 130 | 138 | <Button |
| 131 | 139 | android:id="@+id/election_btn_confirm" |
| 132 | - android:layout_width="wrap_content" | |
| 133 | - android:layout_height="wrap_content" | |
| 140 | + android:layout_width="@dimen/px420dp" | |
| 141 | + android:layout_height="@dimen/px110dp" | |
| 134 | 142 | android:layout_centerInParent="true" |
| 135 | 143 | android:background="@drawable/oppos_selector" |
| 136 | 144 | android:text="@string/confirm_submit" |
| 137 | 145 | android:textColor="@color/white" |
| 138 | - android:textSize="@dimen/big_text_p4" | |
| 146 | + android:textSize="@dimen/px60dp" | |
| 139 | 147 | android:textStyle="bold" /> |
| 140 | 148 | |
| 141 | 149 | <Button |
| 142 | 150 | android:id="@+id/election_btn_modify" |
| 143 | - android:layout_width="wrap_content" | |
| 144 | - android:layout_height="wrap_content" | |
| 151 | + android:layout_width="@dimen/px420dp" | |
| 152 | + android:layout_height="@dimen/px110dp" | |
| 145 | 153 | android:layout_centerInParent="true" |
| 146 | - android:background="@drawable/signin_selector" | |
| 154 | + android:background="@drawable/agree_selector" | |
| 147 | 155 | android:text="@string/modify" |
| 148 | 156 | android:textColor="@color/white" |
| 149 | - android:textSize="@dimen/big_text_p4" | |
| 157 | + android:textSize="@dimen/px60dp" | |
| 150 | 158 | android:textStyle="bold" |
| 151 | 159 | android:visibility="invisible" /> |
| 152 | 160 | |
| 161 | + | |
| 153 | 162 | <TextView |
| 154 | 163 | android:id="@+id/tv_tip_info" |
| 155 | 164 | android:layout_width="wrap_content" |
| ... | ... | @@ -181,6 +190,7 @@ |
| 181 | 190 | android:layout_marginRight="20dp" |
| 182 | 191 | android:layout_marginTop="50dp" |
| 183 | 192 | android:background="@drawable/right_control" |
| 193 | + android:visibility="gone" | |
| 184 | 194 | android:orientation="vertical"> |
| 185 | 195 | |
| 186 | 196 | <ImageView |
| ... | ... | @@ -255,20 +265,42 @@ |
| 255 | 265 | android:textStyle="bold" /> |
| 256 | 266 | </RelativeLayout> |
| 257 | 267 | |
| 258 | - <TextView | |
| 259 | - android:id="@+id/singlevote_tv_result" | |
| 260 | - android:layout_width="wrap_content" | |
| 261 | - android:layout_height="wrap_content" | |
| 262 | - android:alpha="0.9" | |
| 263 | - android:background="@drawable/voted_empty" | |
| 264 | - android:gravity="center" | |
| 265 | - android:rotation="-15" | |
| 266 | - android:text="" | |
| 267 | - android:textColor="#ddff9933" | |
| 268 | - android:textSize="@dimen/big_text_p2" | |
| 269 | - android:textStyle="bold" | |
| 270 | - android:visibility="invisible" | |
| 271 | - android:layout_centerInParent="true" | |
| 272 | - android:layout_marginTop="40dp" | |
| 273 | - android:layout_marginRight="40dp"/> | |
| 268 | + | |
| 269 | + <FrameLayout | |
| 270 | + android:id="@+id/result_layout" | |
| 271 | + android:layout_width="match_parent" | |
| 272 | + android:layout_height="match_parent" | |
| 273 | + android:layout_above="@+id/election_pannal_bottom" | |
| 274 | + android:visibility="gone" | |
| 275 | + android:gravity="center"> | |
| 276 | + | |
| 277 | + <LinearLayout | |
| 278 | + android:layout_width="match_parent" | |
| 279 | + android:layout_height="match_parent" | |
| 280 | + android:background="@color/white" | |
| 281 | + android:alpha="0.4" | |
| 282 | + android:orientation="horizontal"/> | |
| 283 | + | |
| 284 | + <TextView | |
| 285 | + android:id="@+id/singlevote_tv_result" | |
| 286 | + android:layout_width="@dimen/px625dp" | |
| 287 | + android:layout_height="@dimen/px217dp" | |
| 288 | + android:layout_marginTop="@dimen/px100dp" | |
| 289 | + android:background="@drawable/voted" | |
| 290 | + android:layout_gravity="center" | |
| 291 | + android:textSize="@dimen/big_text_p2" | |
| 292 | + android:textStyle="bold"/> | |
| 293 | + | |
| 294 | + <TextView | |
| 295 | + android:id="@+id/submiting_tv" | |
| 296 | + android:layout_width="wrap_content" | |
| 297 | + android:layout_height="wrap_content" | |
| 298 | + android:layout_marginTop="@dimen/px100dp" | |
| 299 | + android:layout_gravity="center" | |
| 300 | + android:textColor="@color/red" | |
| 301 | + android:text="@string/submiting" | |
| 302 | + android:textSize="@dimen/px140dp" | |
| 303 | + android:visibility="gone" | |
| 304 | + android:textStyle="bold"/> | |
| 305 | + </FrameLayout> | |
| 274 | 306 | </RelativeLayout> |
| 275 | 307 | \ No newline at end of file | ... | ... |
C5/app/src/main/res/layout/fragment_election.xml
| ... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 | android:id="@+id/line_panel" |
| 10 | 10 | android:layout_width="match_parent" |
| 11 | 11 | android:layout_height="wrap_content" |
| 12 | - android:background="@color/red" | |
| 12 | + android:background="@color/red2" | |
| 13 | 13 | android:orientation="horizontal" |
| 14 | 14 | android:paddingBottom="20dp" |
| 15 | 15 | android:paddingLeft="20dp" |
| ... | ... | @@ -24,6 +24,7 @@ |
| 24 | 24 | android:ellipsize="end" |
| 25 | 25 | android:lines="1" |
| 26 | 26 | android:text="@string/sunvote_no_paper" |
| 27 | + android:textStyle="bold" | |
| 27 | 28 | android:textColor="@color/white" |
| 28 | 29 | android:textSize="@dimen/big_text_p4" /> |
| 29 | 30 | |
| ... | ... | @@ -34,6 +35,7 @@ |
| 34 | 35 | android:layout_marginRight="20dp" |
| 35 | 36 | android:textColor="@color/white" |
| 36 | 37 | android:text="" |
| 38 | + android:textStyle="bold" | |
| 37 | 39 | android:textSize="@dimen/big_text_p5" /> |
| 38 | 40 | |
| 39 | 41 | <Button |
| ... | ... | @@ -43,6 +45,7 @@ |
| 43 | 45 | android:background="@drawable/agree_selector" |
| 44 | 46 | android:text="@string/select_other" |
| 45 | 47 | android:textColor="@color/white" |
| 48 | + android:textStyle="bold" | |
| 46 | 49 | android:layout_marginRight="@dimen/px40dp" |
| 47 | 50 | android:textSize="@dimen/big_text_p5" /> |
| 48 | 51 | |
| ... | ... | @@ -125,7 +128,7 @@ |
| 125 | 128 | android:layout_height="@dimen/px110dp" |
| 126 | 129 | android:layout_centerInParent="true" |
| 127 | 130 | android:layout_marginRight="@dimen/content_margin" |
| 128 | - android:background="@drawable/signin_selector" | |
| 131 | + android:background="@drawable/agree_selector" | |
| 129 | 132 | android:text="@string/modify" |
| 130 | 133 | android:textColor="@color/white" |
| 131 | 134 | android:textSize="@dimen/px60dp" |
| ... | ... | @@ -148,6 +151,7 @@ |
| 148 | 151 | android:layout_height="wrap_content" |
| 149 | 152 | android:layout_gravity="center_vertical" |
| 150 | 153 | android:layout_marginLeft="150dp" |
| 154 | + android:textStyle="bold" | |
| 151 | 155 | android:gravity="center" |
| 152 | 156 | android:text="序号" |
| 153 | 157 | android:textColor="@color/gray" |
| ... | ... | @@ -161,6 +165,7 @@ |
| 161 | 165 | android:layout_marginLeft="40dp" |
| 162 | 166 | android:layout_weight="1" |
| 163 | 167 | android:gravity="left|center_vertical" |
| 168 | + android:textStyle="bold" | |
| 164 | 169 | android:text="侯选人" |
| 165 | 170 | android:textColor="@color/red" |
| 166 | 171 | android:textSize="@dimen/big_text_p6" /> |
| ... | ... | @@ -175,6 +180,7 @@ |
| 175 | 180 | android:layout_height="wrap_content" |
| 176 | 181 | android:layout_gravity="center_vertical" |
| 177 | 182 | android:text="@string/agree" |
| 183 | + android:textStyle="bold" | |
| 178 | 184 | android:textColor="@color/red" |
| 179 | 185 | android:textSize="@dimen/big_text_p6" /> |
| 180 | 186 | |
| ... | ... | @@ -184,6 +190,7 @@ |
| 184 | 190 | android:layout_gravity="center_vertical" |
| 185 | 191 | android:layout_marginLeft="@dimen/button_to_content" |
| 186 | 192 | android:text="@string/oppose" |
| 193 | + android:textStyle="bold" | |
| 187 | 194 | android:textColor="@color/red" |
| 188 | 195 | android:textSize="@dimen/big_text_p6" /> |
| 189 | 196 | |
| ... | ... | @@ -193,6 +200,7 @@ |
| 193 | 200 | android:layout_gravity="center_vertical" |
| 194 | 201 | android:layout_marginLeft="@dimen/button_to_content" |
| 195 | 202 | android:text="@string/delete" |
| 203 | + android:textStyle="bold" | |
| 196 | 204 | android:textColor="@color/red" |
| 197 | 205 | android:textSize="@dimen/big_text_p6" |
| 198 | 206 | android:visibility="gone" /> |
| ... | ... | @@ -279,6 +287,7 @@ |
| 279 | 287 | android:layout_height="@dimen/px120dp" |
| 280 | 288 | android:text="@string/input_other" |
| 281 | 289 | android:layout_marginRight="@dimen/px90dp" |
| 290 | + android:textStyle="bold" | |
| 282 | 291 | android:textColor="@color/black" |
| 283 | 292 | android:textSize="@dimen/px60dp" /> |
| 284 | 293 | |
| ... | ... | @@ -308,7 +317,7 @@ |
| 308 | 317 | android:id="@+id/election_add_edit_btn_ok" |
| 309 | 318 | android:layout_width="@dimen/px360dp" |
| 310 | 319 | android:layout_height="@dimen/px120dp" |
| 311 | - android:layout_marginLeft="@dimen/px67dp" | |
| 320 | + android:layout_marginLeft="@dimen/px80dp" | |
| 312 | 321 | android:background="@drawable/btn_agree" |
| 313 | 322 | android:text="@string/ok" |
| 314 | 323 | android:textColor="@color/white" |
| ... | ... | @@ -320,7 +329,7 @@ |
| 320 | 329 | android:layout_width="@dimen/px360dp" |
| 321 | 330 | android:layout_height="@dimen/px120dp" |
| 322 | 331 | android:background="@drawable/oppos_selector" |
| 323 | - android:layout_marginLeft="@dimen/px90dp" | |
| 332 | + android:layout_marginLeft="@dimen/px80dp" | |
| 324 | 333 | android:text="@string/cancel" |
| 325 | 334 | android:textColor="@color/white" |
| 326 | 335 | android:textSize="@dimen/big_text_p4" |
| ... | ... | @@ -414,19 +423,41 @@ |
| 414 | 423 | android:textStyle="bold" /> |
| 415 | 424 | </RelativeLayout> |
| 416 | 425 | |
| 417 | - <TextView | |
| 418 | - android:id="@+id/singlevote_tv_result" | |
| 419 | - android:layout_width="wrap_content" | |
| 420 | - android:layout_height="wrap_content" | |
| 421 | - android:layout_centerInParent="true" | |
| 422 | - android:layout_marginRight="@dimen/content_margin" | |
| 423 | - android:layout_marginTop="@dimen/content_margin" | |
| 424 | - android:alpha="0.9" | |
| 425 | - android:background="@drawable/voted_empty" | |
| 426 | - android:gravity="center" | |
| 427 | - android:rotation="-15" | |
| 428 | - android:textColor="#ddff9933" | |
| 429 | - android:textSize="@dimen/big_text_p2" | |
| 430 | - android:textStyle="bold" | |
| 431 | - android:visibility="invisible" /> | |
| 426 | + <FrameLayout | |
| 427 | + android:id="@+id/result_layout" | |
| 428 | + android:layout_width="match_parent" | |
| 429 | + android:layout_height="match_parent" | |
| 430 | + android:layout_above="@+id/election_pannal_bottom" | |
| 431 | + android:visibility="gone" | |
| 432 | + android:gravity="center"> | |
| 433 | + | |
| 434 | + <LinearLayout | |
| 435 | + android:layout_width="match_parent" | |
| 436 | + android:layout_height="match_parent" | |
| 437 | + android:background="@color/white" | |
| 438 | + android:alpha="0.4" | |
| 439 | + android:orientation="horizontal" /> | |
| 440 | + | |
| 441 | + <TextView | |
| 442 | + android:id="@+id/singlevote_tv_result" | |
| 443 | + android:layout_width="@dimen/px625dp" | |
| 444 | + android:layout_height="@dimen/px217dp" | |
| 445 | + android:layout_marginTop="@dimen/px100dp" | |
| 446 | + android:background="@drawable/voted" | |
| 447 | + android:layout_gravity="center" | |
| 448 | + android:textSize="@dimen/big_text_p2" | |
| 449 | + android:textStyle="bold"/> | |
| 450 | + | |
| 451 | + <TextView | |
| 452 | + android:id="@+id/submiting_tv" | |
| 453 | + android:layout_width="wrap_content" | |
| 454 | + android:layout_height="wrap_content" | |
| 455 | + android:layout_marginTop="@dimen/px100dp" | |
| 456 | + android:layout_gravity="center" | |
| 457 | + android:textColor="@color/red" | |
| 458 | + android:text="@string/submiting" | |
| 459 | + android:textSize="@dimen/px140dp" | |
| 460 | + android:visibility="gone" | |
| 461 | + android:textStyle="bold"/> | |
| 462 | + </FrameLayout> | |
| 432 | 463 | </RelativeLayout> |
| 433 | 464 | \ No newline at end of file | ... | ... |
C5/app/src/main/res/layout/fragment_result_election.xml
| ... | ... | @@ -2,14 +2,14 @@ |
| 2 | 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | 3 | android:layout_width="match_parent" |
| 4 | 4 | android:layout_height="match_parent" |
| 5 | - android:background="#ff004586" | |
| 5 | + android:background="#0952b5" | |
| 6 | 6 | android:orientation="vertical"> |
| 7 | 7 | |
| 8 | 8 | <RelativeLayout |
| 9 | 9 | android:id="@+id/title_linear" |
| 10 | 10 | android:layout_width="match_parent" |
| 11 | 11 | android:layout_height="wrap_content" |
| 12 | - android:layout_marginTop="10dp"> | |
| 12 | + android:layout_marginTop="@dimen/px110dp"> | |
| 13 | 13 | |
| 14 | 14 | <ImageButton |
| 15 | 15 | android:id="@+id/fragment_result_election_btn_back" |
| ... | ... | @@ -35,27 +35,65 @@ |
| 35 | 35 | android:textStyle="bold" /> |
| 36 | 36 | </RelativeLayout> |
| 37 | 37 | |
| 38 | - <TextView | |
| 39 | - android:id="@+id/fragment_result_election_title" | |
| 40 | - android:layout_width="fill_parent" | |
| 38 | + <LinearLayout | |
| 39 | + android:id="@+id/bottom_linear" | |
| 40 | + android:layout_width="400dp" | |
| 41 | 41 | android:layout_height="wrap_content" |
| 42 | - android:layout_below="@id/title_linear" | |
| 42 | + android:layout_marginTop="@dimen/px60dp" | |
| 43 | 43 | android:layout_centerHorizontal="true" |
| 44 | - android:layout_marginLeft="@dimen/content_margin" | |
| 45 | - android:layout_marginRight="@dimen/content_margin" | |
| 46 | - android:layout_marginTop="10dp" | |
| 47 | - android:gravity="center" | |
| 48 | - android:lines="1" | |
| 49 | - android:text="@string/vote_result" | |
| 50 | - android:textColor="@color/white" | |
| 51 | - android:textSize="@dimen/big_text_p3" /> | |
| 44 | + android:layout_below="@id/title_linear" | |
| 45 | + android:orientation="horizontal"> | |
| 46 | + | |
| 47 | + <TextView | |
| 48 | + android:layout_width="wrap_content" | |
| 49 | + android:layout_height="wrap_content" | |
| 50 | + android:layout_weight="1" | |
| 51 | + android:gravity="right" | |
| 52 | + android:text="@string/yindao1" | |
| 53 | + android:textColor="@color/white" | |
| 54 | + android:textSize="@dimen/px60dp" | |
| 55 | + android:textStyle="bold" /> | |
| 56 | + | |
| 57 | + <TextView | |
| 58 | + android:id="@+id/yingdaoresult" | |
| 59 | + android:layout_width="wrap_content" | |
| 60 | + android:layout_height="wrap_content" | |
| 61 | + android:layout_marginLeft="10dp" | |
| 62 | + android:layout_marginRight="60dp" | |
| 63 | + android:layout_weight="1" | |
| 64 | + android:gravity="left" | |
| 65 | + android:text="150" | |
| 66 | + android:textColor="@color/white" | |
| 67 | + android:textSize="@dimen/px60dp"/> | |
| 68 | + | |
| 69 | + <TextView | |
| 70 | + android:layout_width="wrap_content" | |
| 71 | + android:layout_height="wrap_content" | |
| 72 | + android:gravity="right" | |
| 73 | + android:text="@string/shidao1" | |
| 74 | + android:textColor="@color/white" | |
| 75 | + android:textSize="@dimen/px60dp" | |
| 76 | + android:textStyle="bold" /> | |
| 77 | + | |
| 78 | + <TextView | |
| 79 | + android:id="@+id/shidaoresult" | |
| 80 | + android:layout_width="wrap_content" | |
| 81 | + android:layout_height="wrap_content" | |
| 82 | + android:layout_marginLeft="10dp" | |
| 83 | + android:layout_weight="1" | |
| 84 | + android:gravity="left" | |
| 85 | + android:text="150" | |
| 86 | + android:textColor="@color/white" | |
| 87 | + android:textSize="@dimen/px60dp"/> | |
| 88 | + | |
| 89 | + </LinearLayout> | |
| 52 | 90 | |
| 53 | 91 | <LinearLayout |
| 54 | 92 | android:id="@+id/data_title_layout" |
| 55 | 93 | android:layout_width="match_parent" |
| 56 | 94 | android:layout_height="wrap_content" |
| 57 | - android:layout_below="@id/fragment_result_election_title" | |
| 58 | - android:layout_marginTop="20dp" | |
| 95 | + android:layout_below="@id/bottom_linear" | |
| 96 | + android:layout_marginTop="@dimen/px91dp" | |
| 59 | 97 | android:orientation="horizontal" |
| 60 | 98 | android:paddingRight="80dp"> |
| 61 | 99 | |
| ... | ... | @@ -65,9 +103,9 @@ |
| 65 | 103 | android:layout_height="match_parent" |
| 66 | 104 | android:gravity="center" |
| 67 | 105 | android:paddingLeft="@dimen/content_margin" |
| 68 | - android:text="@string/name_index" | |
| 69 | - android:textColor="@color/yellow" | |
| 70 | - android:textSize="@dimen/big_text_p4" | |
| 106 | + android:text="@string/number" | |
| 107 | + android:textColor="@color/white" | |
| 108 | + android:textSize="@dimen/px48dp" | |
| 71 | 109 | android:textStyle="bold" /> |
| 72 | 110 | |
| 73 | 111 | <TextView |
| ... | ... | @@ -75,9 +113,10 @@ |
| 75 | 113 | android:layout_width="0dp" |
| 76 | 114 | android:layout_height="match_parent" |
| 77 | 115 | android:layout_weight="1" |
| 116 | + android:gravity="center" | |
| 78 | 117 | android:text="@string/name_xpad" |
| 79 | - android:textColor="@color/yellow" | |
| 80 | - android:textSize="@dimen/big_text_p4" | |
| 118 | + android:textColor="@color/white" | |
| 119 | + android:textSize="@dimen/px48dp" | |
| 81 | 120 | android:textStyle="bold" /> |
| 82 | 121 | |
| 83 | 122 | <TextView |
| ... | ... | @@ -85,9 +124,9 @@ |
| 85 | 124 | android:layout_width="140dp" |
| 86 | 125 | android:layout_height="match_parent" |
| 87 | 126 | android:gravity="center" |
| 88 | - android:text="@string/agree_num" | |
| 89 | - android:textColor="@color/yellow" | |
| 90 | - android:textSize="@dimen/big_text_p4" | |
| 127 | + android:text="@string/agree" | |
| 128 | + android:textColor="@color/white" | |
| 129 | + android:textSize="@dimen/px48dp" | |
| 91 | 130 | android:textStyle="bold" /> |
| 92 | 131 | |
| 93 | 132 | <TextView |
| ... | ... | @@ -95,9 +134,9 @@ |
| 95 | 134 | android:layout_width="140dp" |
| 96 | 135 | android:layout_height="match_parent" |
| 97 | 136 | android:gravity="center" |
| 98 | - android:text="@string/oppose_num" | |
| 99 | - android:textColor="@color/yellow" | |
| 100 | - android:textSize="@dimen/big_text_p4" | |
| 137 | + android:text="@string/oppose" | |
| 138 | + android:textColor="@color/white" | |
| 139 | + android:textSize="@dimen/px48dp" | |
| 101 | 140 | android:textStyle="bold" /> |
| 102 | 141 | |
| 103 | 142 | <TextView |
| ... | ... | @@ -105,9 +144,9 @@ |
| 105 | 144 | android:layout_width="140dp" |
| 106 | 145 | android:layout_height="match_parent" |
| 107 | 146 | android:gravity="center" |
| 108 | - android:text="@string/abstant_num" | |
| 109 | - android:textColor="@color/yellow" | |
| 110 | - android:textSize="@dimen/big_text_p4" | |
| 147 | + android:text="@string/abstant" | |
| 148 | + android:textColor="@color/white" | |
| 149 | + android:textSize="@dimen/px48dp" | |
| 111 | 150 | android:textStyle="bold" /> |
| 112 | 151 | |
| 113 | 152 | <TextView |
| ... | ... | @@ -118,74 +157,18 @@ |
| 118 | 157 | android:layout_centerVertical="true" |
| 119 | 158 | android:gravity="center" |
| 120 | 159 | android:text="@string/result" |
| 121 | - android:textColor="@color/yellow" | |
| 122 | - android:textSize="@dimen/big_text_p4" | |
| 123 | - android:textStyle="bold" /> | |
| 124 | - </LinearLayout> | |
| 125 | - | |
| 126 | - <LinearLayout | |
| 127 | - android:id="@+id/bottom_linear" | |
| 128 | - android:layout_width="800dp" | |
| 129 | - android:layout_height="wrap_content" | |
| 130 | - android:layout_centerHorizontal="true" | |
| 131 | - android:layout_alignParentBottom="true" | |
| 132 | - android:layout_marginBottom="20dp" | |
| 133 | - android:orientation="horizontal"> | |
| 134 | - | |
| 135 | - <TextView | |
| 136 | - android:layout_width="wrap_content" | |
| 137 | - android:layout_height="wrap_content" | |
| 138 | - android:layout_weight="1" | |
| 139 | - android:gravity="right" | |
| 140 | - android:text="@string/yindao1" | |
| 141 | - android:textColor="@color/yellow" | |
| 142 | - android:textSize="@dimen/big_text_p3" | |
| 143 | - android:textStyle="bold" /> | |
| 144 | - | |
| 145 | - <TextView | |
| 146 | - android:id="@+id/yingdaoresult" | |
| 147 | - android:layout_width="wrap_content" | |
| 148 | - android:layout_height="wrap_content" | |
| 149 | - android:layout_marginLeft="10dp" | |
| 150 | - android:layout_marginRight="60dp" | |
| 151 | - android:layout_weight="1" | |
| 152 | - android:gravity="left" | |
| 153 | - android:text="150" | |
| 154 | 160 | android:textColor="@color/white" |
| 155 | - android:textSize="@dimen/big_text_p3" /> | |
| 156 | - | |
| 157 | - <TextView | |
| 158 | - android:layout_width="wrap_content" | |
| 159 | - android:layout_height="wrap_content" | |
| 160 | - android:layout_marginLeft="60dp" | |
| 161 | - android:layout_weight="1" | |
| 162 | - android:gravity="right" | |
| 163 | - android:text="@string/shidao1" | |
| 164 | - android:textColor="@color/yellow" | |
| 165 | - android:textSize="@dimen/big_text_p3" | |
| 161 | + android:textSize="@dimen/px48dp" | |
| 166 | 162 | android:textStyle="bold" /> |
| 167 | - | |
| 168 | - <TextView | |
| 169 | - android:id="@+id/shidaoresult" | |
| 170 | - android:layout_width="wrap_content" | |
| 171 | - android:layout_height="wrap_content" | |
| 172 | - android:layout_marginLeft="10dp" | |
| 173 | - android:layout_weight="1" | |
| 174 | - android:gravity="left" | |
| 175 | - android:text="150" | |
| 176 | - android:textColor="@color/white" | |
| 177 | - android:textSize="@dimen/big_text_p3" /> | |
| 178 | - | |
| 179 | 163 | </LinearLayout> |
| 180 | 164 | |
| 181 | 165 | <ListView |
| 182 | 166 | android:id="@+id/fragment_result_election_list" |
| 183 | 167 | android:layout_width="match_parent" |
| 184 | 168 | android:layout_height="match_parent" |
| 185 | - android:layout_above="@id/bottom_linear" | |
| 186 | 169 | android:layout_below="@id/data_title_layout" |
| 187 | 170 | android:layout_marginBottom="@dimen/content_margin" |
| 188 | - android:divider="@color/votebakground" | |
| 171 | + android:layout_marginTop="@dimen/px20dp" | |
| 172 | + android:divider="@color/blue1" | |
| 189 | 173 | android:dividerHeight="1dp" /> |
| 190 | - | |
| 191 | 174 | </RelativeLayout> |
| 192 | 175 | \ No newline at end of file | ... | ... |
C5/app/src/main/res/layout/list_custom_election_item.xml
| ... | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | |
| 7 | 7 | <RelativeLayout |
| 8 | 8 | android:layout_width="match_parent" |
| 9 | - android:layout_height="match_parent" | |
| 9 | + android:layout_height="@dimen/px120dp" | |
| 10 | 10 | android:paddingLeft="20dp" |
| 11 | 11 | android:paddingRight="20dp" |
| 12 | 12 | android:layout_alignParentTop="true" |
| ... | ... | @@ -21,8 +21,8 @@ |
| 21 | 21 | android:layout_centerVertical="true" |
| 22 | 22 | android:gravity="center" |
| 23 | 23 | android:text="" |
| 24 | - android:textColor="@color/black" | |
| 25 | - android:textSize="26px" /> | |
| 24 | + android:textColor="@color/darkgray" | |
| 25 | + android:textSize="@dimen/px40dp" /> | |
| 26 | 26 | |
| 27 | 27 | <!-- <View |
| 28 | 28 | android:id="@+id/election_item_middle" |
| ... | ... | @@ -33,14 +33,14 @@ |
| 33 | 33 | --> |
| 34 | 34 | <TextView |
| 35 | 35 | android:id="@+id/list_election_item_name" |
| 36 | - android:layout_width="400dp" | |
| 36 | + android:layout_width="@dimen/px1000dp" | |
| 37 | 37 | android:layout_height="wrap_content" |
| 38 | 38 | android:layout_centerVertical="true" |
| 39 | 39 | android:layout_toRightOf="@id/list_election_item_num" |
| 40 | 40 | android:gravity="center" |
| 41 | 41 | android:text="" |
| 42 | 42 | android:textColor="@color/black" |
| 43 | - android:textSize="@dimen/big_text_p5" /> | |
| 43 | + android:textSize="@dimen/px40dp" /> | |
| 44 | 44 | |
| 45 | 45 | <!-- <View |
| 46 | 46 | android:layout_width="2px" |
| ... | ... | @@ -57,33 +57,35 @@ |
| 57 | 57 | |
| 58 | 58 | <RadioButton |
| 59 | 59 | android:id="@+id/list_election_item_oo" |
| 60 | - android:layout_width="wrap_content" | |
| 61 | - android:layout_height="wrap_content" | |
| 60 | + android:layout_width="@dimen/px70dp" | |
| 61 | + android:layout_height="@dimen/px70dp" | |
| 62 | 62 | android:layout_centerVertical="true" |
| 63 | 63 | android:layout_marginTop="10dp" |
| 64 | 64 | android:button="@null" |
| 65 | - android:background="@drawable/oo_selector" | |
| 66 | - android:layout_marginLeft="50dp" | |
| 65 | + android:background="@drawable/selected_selector" | |
| 66 | + android:layout_marginLeft="@dimen/px300dp" | |
| 67 | 67 | android:visibility="visible" /> |
| 68 | 68 | |
| 69 | 69 | <RadioButton |
| 70 | 70 | android:id="@+id/list_election_item_xx" |
| 71 | - android:layout_width="wrap_content" | |
| 72 | - android:layout_height="wrap_content" | |
| 71 | + android:layout_width="@dimen/px70dp" | |
| 72 | + android:layout_height="@dimen/px70dp" | |
| 73 | 73 | android:layout_centerVertical="true" |
| 74 | 74 | android:layout_marginTop="10dp" |
| 75 | 75 | android:button="@null" |
| 76 | 76 | android:background="@drawable/xx_selector" |
| 77 | + android:visibility="gone" | |
| 77 | 78 | android:layout_marginLeft="50dp" |
| 78 | 79 | android:layout_toRightOf="@id/list_election_item_oo" /> |
| 79 | 80 | |
| 80 | 81 | <RadioButton |
| 81 | 82 | android:id="@+id/list_election_item_abstain" |
| 82 | - android:layout_width="wrap_content" | |
| 83 | - android:layout_height="wrap_content" | |
| 83 | + android:layout_width="@dimen/px70dp" | |
| 84 | + android:layout_height="@dimen/px70dp" | |
| 84 | 85 | android:layout_centerVertical="true" |
| 85 | 86 | android:layout_marginTop="10dp" |
| 86 | 87 | android:button="@null" |
| 88 | + android:visibility="gone" | |
| 87 | 89 | android:background="@drawable/eab_selector" |
| 88 | 90 | android:layout_marginLeft="50dp" |
| 89 | 91 | android:layout_toRightOf="@id/list_election_item_xx" /> | ... | ... |
C5/app/src/main/res/layout/list_election_item.xml
| ... | ... | @@ -153,7 +153,7 @@ |
| 153 | 153 | android:visibility="invisible" |
| 154 | 154 | android:layout_marginTop="@dimen/inner_button_margin" |
| 155 | 155 | android:button="@null" |
| 156 | - android:background="@drawable/delete"/> | |
| 156 | + android:background="@drawable/ic_delete"/> | |
| 157 | 157 | </RadioGroup> |
| 158 | 158 | </LinearLayout> |
| 159 | 159 | </RelativeLayout> |
| 160 | 160 | \ No newline at end of file | ... | ... |
C5/app/src/main/res/layout/list_result_election_item.xml
| 1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | 3 | android:layout_width="match_parent" |
| 4 | - android:layout_height="wrap_content" | |
| 4 | + android:layout_height="@dimen/px110dp" | |
| 5 | 5 | android:layout_marginBottom="@dimen/content_margin" |
| 6 | 6 | android:layout_marginTop="@dimen/content_margin" |
| 7 | + android:minHeight="@dimen/px110dp" | |
| 7 | 8 | android:paddingRight="80dp"> |
| 8 | 9 | |
| 9 | 10 | <TextView |
| ... | ... | @@ -15,8 +16,8 @@ |
| 15 | 16 | android:paddingLeft="@dimen/content_margin" |
| 16 | 17 | android:text="@string/name_index" |
| 17 | 18 | android:textColor="@color/white" |
| 18 | - android:textSize="@dimen/big_text_p4" | |
| 19 | - android:textStyle="bold" /> | |
| 19 | + android:textSize="@dimen/px48dp" | |
| 20 | + android:textStyle="bold"/> | |
| 20 | 21 | |
| 21 | 22 | <TextView |
| 22 | 23 | android:id="@+id/item_result_election_name" |
| ... | ... | @@ -25,7 +26,8 @@ |
| 25 | 26 | android:layout_weight="1" |
| 26 | 27 | android:text="@string/name_xpad" |
| 27 | 28 | android:textColor="@color/white" |
| 28 | - android:textSize="@dimen/big_text_p4" | |
| 29 | + android:gravity="center" | |
| 30 | + android:textSize="@dimen/px48dp" | |
| 29 | 31 | android:textStyle="bold" /> |
| 30 | 32 | |
| 31 | 33 | <TextView |
| ... | ... | @@ -35,7 +37,7 @@ |
| 35 | 37 | android:gravity="center" |
| 36 | 38 | android:text="@string/agree_num" |
| 37 | 39 | android:textColor="@color/white" |
| 38 | - android:textSize="@dimen/big_text_p4" | |
| 40 | + android:textSize="@dimen/px48dp" | |
| 39 | 41 | android:textStyle="bold" /> |
| 40 | 42 | |
| 41 | 43 | <TextView |
| ... | ... | @@ -45,8 +47,8 @@ |
| 45 | 47 | android:gravity="center" |
| 46 | 48 | android:text="@string/oppose_num" |
| 47 | 49 | android:textColor="@color/white" |
| 48 | - android:textSize="@dimen/big_text_p4" | |
| 49 | - android:textStyle="bold" /> | |
| 50 | + android:textSize="@dimen/px48dp" | |
| 51 | + android:textStyle="bold"/> | |
| 50 | 52 | |
| 51 | 53 | <TextView |
| 52 | 54 | android:id="@+id/item_result_election_abstant_num" |
| ... | ... | @@ -55,7 +57,7 @@ |
| 55 | 57 | android:gravity="center" |
| 56 | 58 | android:text="@string/abstant_num" |
| 57 | 59 | android:textColor="@color/white" |
| 58 | - android:textSize="@dimen/big_text_p4" | |
| 60 | + android:textSize="@dimen/px48dp" | |
| 59 | 61 | android:textStyle="bold" /> |
| 60 | 62 | |
| 61 | 63 | <TextView |
| ... | ... | @@ -65,7 +67,6 @@ |
| 65 | 67 | android:gravity="center" |
| 66 | 68 | android:text="@string/result" |
| 67 | 69 | android:textColor="@color/white" |
| 68 | - android:textSize="@dimen/big_text_p4" | |
| 70 | + android:textSize="@dimen/px48dp" | |
| 69 | 71 | android:textStyle="bold" /> |
| 70 | - | |
| 71 | 72 | </LinearLayout> | ... | ... |
C5/app/src/main/res/values/color.xml
| ... | ... | @@ -167,4 +167,7 @@ |
| 167 | 167 | <color name="green1">#00964d</color> <!--绿色 --> |
| 168 | 168 | <color name="red1">#d50c00</color> <!--红色 --> |
| 169 | 169 | <color name="red2">#ac1007</color> <!--红色 --> |
| 170 | + | |
| 171 | + <color name="blue1">#5386cb</color> <!--绿色 --> | |
| 172 | + <color name="blue2">#084aa3</color> <!--红色 --> | |
| 170 | 173 | </resources> |
| 171 | 174 | \ No newline at end of file | ... | ... |
C5/app/src/main/res/values/strings.xml
| ... | ... | @@ -16,7 +16,7 @@ |
| 16 | 16 | <string name="base_connecting">基站连接中</string> |
| 17 | 17 | <string name="keypad_test">键盘测试</string> |
| 18 | 18 | <string name="sunvote_no_paper">无纸化会议</string> |
| 19 | - <string name="submiting">提交中</string> | |
| 19 | + <string name="submiting">提交中...</string> | |
| 20 | 20 | <string name="modify">修改</string> |
| 21 | 21 | <string name="doc_title">会议内容</string> |
| 22 | 22 | <string name="page_up">上 翻</string> |
| ... | ... | @@ -139,7 +139,7 @@ |
| 139 | 139 | <string name="modify_id_msg">请2秒内在主控端完成</string> |
| 140 | 140 | |
| 141 | 141 | <string name="service_paper">白纸</string> |
| 142 | - | |
| 142 | + <string name="vote_num">票数</string> | |
| 143 | 143 | |
| 144 | 144 | <string name="name_xpad">姓名</string> |
| 145 | 145 | <string name="agree_num">赞成票数</string> | ... | ... |