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,6 +4,7 @@ import android.annotation.SuppressLint; | ||
| 4 | import android.content.Context; | 4 | import android.content.Context; |
| 5 | import android.graphics.Color; | 5 | import android.graphics.Color; |
| 6 | import android.os.Bundle; | 6 | import android.os.Bundle; |
| 7 | +import android.text.Html; | ||
| 7 | import android.util.Log; | 8 | import android.util.Log; |
| 8 | import android.view.LayoutInflater; | 9 | import android.view.LayoutInflater; |
| 9 | import android.view.View; | 10 | import android.view.View; |
| @@ -34,7 +35,7 @@ public class ElectionCustomFragment extends BaseFragment { | @@ -34,7 +35,7 @@ public class ElectionCustomFragment extends BaseFragment { | ||
| 34 | private ArrayList<MultiTitleItem> aryContent = null; | 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 | private ListView listview; | 39 | private ListView listview; |
| 39 | private Button btnConfirm; | 40 | private Button btnConfirm; |
| 40 | private Button btnModify; | 41 | private Button btnModify; |
| @@ -60,6 +61,8 @@ public class ElectionCustomFragment extends BaseFragment { | @@ -60,6 +61,8 @@ public class ElectionCustomFragment extends BaseFragment { | ||
| 60 | //确认面板 | 61 | //确认面板 |
| 61 | private RelativeLayout confirm_panel; | 62 | private RelativeLayout confirm_panel; |
| 62 | 63 | ||
| 64 | + private View resultLayout; | ||
| 65 | + | ||
| 63 | public void setInfo(BillInfo info, ArrayList<MultiTitleItem> subInfo, XPadApiInterface.VoteInfo voteInfo){ | 66 | public void setInfo(BillInfo info, ArrayList<MultiTitleItem> subInfo, XPadApiInterface.VoteInfo voteInfo){ |
| 64 | this.bill = info; | 67 | this.bill = info; |
| 65 | this.aryContent = subInfo; | 68 | this.aryContent = subInfo; |
| @@ -104,6 +107,8 @@ public class ElectionCustomFragment extends BaseFragment { | @@ -104,6 +107,8 @@ public class ElectionCustomFragment extends BaseFragment { | ||
| 104 | ; | 107 | ; |
| 105 | } | 108 | } |
| 106 | }); | 109 | }); |
| 110 | + | ||
| 111 | + | ||
| 107 | btnPageUp.setOnClickListener(new OnClickListener() { | 112 | btnPageUp.setOnClickListener(new OnClickListener() { |
| 108 | 113 | ||
| 109 | @Override | 114 | @Override |
| @@ -150,6 +155,7 @@ public class ElectionCustomFragment extends BaseFragment { | @@ -150,6 +155,7 @@ public class ElectionCustomFragment extends BaseFragment { | ||
| 150 | } | 155 | } |
| 151 | }); | 156 | }); |
| 152 | 157 | ||
| 158 | + | ||
| 153 | btnConfirmOK.setOnClickListener(new OnClickListener() { | 159 | btnConfirmOK.setOnClickListener(new OnClickListener() { |
| 154 | @Override | 160 | @Override |
| 155 | public void onClick(View v) { | 161 | public void onClick(View v) { |
| @@ -195,6 +201,8 @@ public class ElectionCustomFragment extends BaseFragment { | @@ -195,6 +201,8 @@ public class ElectionCustomFragment extends BaseFragment { | ||
| 195 | tvTipInfo= (TextView) view.findViewById(R.id.tv_tip_info); | 201 | tvTipInfo= (TextView) view.findViewById(R.id.tv_tip_info); |
| 196 | 202 | ||
| 197 | tvResult =(TextView) view.findViewById(R.id.singlevote_tv_result); | 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 | confirm_panel = (RelativeLayout) view.findViewById(R.id.singlevote_confirm_panel); | 206 | confirm_panel = (RelativeLayout) view.findViewById(R.id.singlevote_confirm_panel); |
| 199 | 207 | ||
| 200 | btnPageUp = view.findViewById(R.id.election_pageup); | 208 | btnPageUp = view.findViewById(R.id.election_pageup); |
| @@ -223,7 +231,12 @@ public class ElectionCustomFragment extends BaseFragment { | @@ -223,7 +231,12 @@ public class ElectionCustomFragment extends BaseFragment { | ||
| 223 | } | 231 | } |
| 224 | 232 | ||
| 225 | showSecrecyOrDisable(); | 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 | mMainActivity.presenter.submitVoteAllOK(); | 240 | mMainActivity.presenter.submitVoteAllOK(); |
| 228 | } | 241 | } |
| 229 | 242 | ||
| @@ -287,7 +300,7 @@ public class ElectionCustomFragment extends BaseFragment { | @@ -287,7 +300,7 @@ public class ElectionCustomFragment extends BaseFragment { | ||
| 287 | it.startVote = true; | 300 | it.startVote = true; |
| 288 | it.modifyModel=true; | 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 | }else{ | 304 | }else{ |
| 292 | btnConfirm.setEnabled(false); | 305 | btnConfirm.setEnabled(false); |
| 293 | btnConfirm.setVisibility(View.INVISIBLE); | 306 | btnConfirm.setVisibility(View.INVISIBLE); |
| @@ -297,7 +310,7 @@ public class ElectionCustomFragment extends BaseFragment { | @@ -297,7 +310,7 @@ public class ElectionCustomFragment extends BaseFragment { | ||
| 297 | it.startVote = true; | 310 | it.startVote = true; |
| 298 | it.modifyModel=false; | 311 | it.modifyModel=false; |
| 299 | } | 312 | } |
| 300 | - tvTipInfo.setText(getString(R.string.submited)); | 313 | + //tvTipInfo.setText(getString(R.string.submited)); |
| 301 | } | 314 | } |
| 302 | mAdapter.notifyDataSetChanged(); | 315 | mAdapter.notifyDataSetChanged(); |
| 303 | } | 316 | } |
| @@ -460,13 +473,19 @@ public class ElectionCustomFragment extends BaseFragment { | @@ -460,13 +473,19 @@ public class ElectionCustomFragment extends BaseFragment { | ||
| 460 | } | 473 | } |
| 461 | 474 | ||
| 462 | private void showResult(){ | 475 | private void showResult(){ |
| 463 | - tvResult.setText("已投票"); | 476 | + //tvResult.setText("已投票"); |
| 464 | tvResult.setVisibility(View.VISIBLE); | 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 | private void hideResult(){ | 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 | private void checkVoted() { | 491 | private void checkVoted() { |
| @@ -486,7 +505,10 @@ public class ElectionCustomFragment extends BaseFragment { | @@ -486,7 +505,10 @@ public class ElectionCustomFragment extends BaseFragment { | ||
| 486 | } | 505 | } |
| 487 | } | 506 | } |
| 488 | if(voteInfo!=null){ | 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 | mAdapter.notifyDataSetChanged(); | 513 | mAdapter.notifyDataSetChanged(); |
| 492 | listview.invalidate(); | 514 | listview.invalidate(); |
C5/app/src/main/java/com/sunvote/xpadapp/fragments/ElectionFragment.java
| @@ -23,6 +23,7 @@ import android.widget.BaseAdapter; | @@ -23,6 +23,7 @@ import android.widget.BaseAdapter; | ||
| 23 | import android.widget.Button; | 23 | import android.widget.Button; |
| 24 | import android.widget.ImageButton; | 24 | import android.widget.ImageButton; |
| 25 | import android.widget.ImageView; | 25 | import android.widget.ImageView; |
| 26 | +import android.widget.LinearLayout; | ||
| 26 | import android.widget.ListView; | 27 | import android.widget.ListView; |
| 27 | import android.widget.RadioButton; | 28 | import android.widget.RadioButton; |
| 28 | import android.widget.RadioGroup; | 29 | import android.widget.RadioGroup; |
| @@ -57,10 +58,12 @@ public class ElectionFragment extends BaseFragment { | @@ -57,10 +58,12 @@ public class ElectionFragment extends BaseFragment { | ||
| 57 | BillInfo bill; | 58 | BillInfo bill; |
| 58 | private TextView tvTitle; | 59 | private TextView tvTitle; |
| 59 | private ListView listview; | 60 | private ListView listview; |
| 60 | - private TextView tvInfo; | 61 | + private TextView tvInfo,tvSubmiting; |
| 61 | private Button btnConfirm; | 62 | private Button btnConfirm; |
| 62 | private Button btnModify; | 63 | private Button btnModify; |
| 63 | private TextView tvResult; | 64 | private TextView tvResult; |
| 65 | + private View resultLayout; | ||
| 66 | + | ||
| 64 | 67 | ||
| 65 | private PaletteView drawView; | 68 | private PaletteView drawView; |
| 66 | 69 | ||
| @@ -140,6 +143,8 @@ public class ElectionFragment extends BaseFragment { | @@ -140,6 +143,8 @@ public class ElectionFragment extends BaseFragment { | ||
| 140 | bottomLayout = (RelativeLayout) view.findViewById(R.id.election_pannal_bottom); | 143 | bottomLayout = (RelativeLayout) view.findViewById(R.id.election_pannal_bottom); |
| 141 | addOtherLayout = view.findViewById(R.id.election_add_other_panel); | 144 | addOtherLayout = view.findViewById(R.id.election_add_other_panel); |
| 142 | tvResult =(TextView) view.findViewById(R.id.singlevote_tv_result); | 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 | confirm_panel = (RelativeLayout) view.findViewById(R.id.singlevote_confirm_panel); | 148 | confirm_panel = (RelativeLayout) view.findViewById(R.id.singlevote_confirm_panel); |
| 144 | 149 | ||
| 145 | tv_all_ok=(TextView) view.findViewById(R.id.tv_all_ok); | 150 | tv_all_ok=(TextView) view.findViewById(R.id.tv_all_ok); |
| @@ -166,6 +171,7 @@ public class ElectionFragment extends BaseFragment { | @@ -166,6 +171,7 @@ public class ElectionFragment extends BaseFragment { | ||
| 166 | 171 | ||
| 167 | } | 172 | } |
| 168 | }); | 173 | }); |
| 174 | + | ||
| 169 | view.setOnClickListener(new OnClickListener() { | 175 | view.setOnClickListener(new OnClickListener() { |
| 170 | @Override | 176 | @Override |
| 171 | public void onClick(View v) { | 177 | public void onClick(View v) { |
| @@ -441,7 +447,12 @@ public class ElectionFragment extends BaseFragment { | @@ -441,7 +447,12 @@ public class ElectionFragment extends BaseFragment { | ||
| 441 | } | 447 | } |
| 442 | 448 | ||
| 443 | showSecrecyOrDisable(); | 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 | new Thread(new Runnable() { | 456 | new Thread(new Runnable() { |
| 446 | public void run() { | 457 | public void run() { |
| 447 | mMainActivity.presenter.submitVote(XPadApi.AnsType_SelectOther,"0"); | 458 | mMainActivity.presenter.submitVote(XPadApi.AnsType_SelectOther,"0"); |
| @@ -576,7 +587,7 @@ public class ElectionFragment extends BaseFragment { | @@ -576,7 +587,7 @@ public class ElectionFragment extends BaseFragment { | ||
| 576 | it.startVote = true; | 587 | it.startVote = true; |
| 577 | it.modifyModel=true; | 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 | }else{ | 591 | }else{ |
| 581 | btnConfirm.setEnabled(false); | 592 | btnConfirm.setEnabled(false); |
| 582 | btnConfirm.setVisibility(View.INVISIBLE); | 593 | btnConfirm.setVisibility(View.INVISIBLE); |
| @@ -587,7 +598,7 @@ public class ElectionFragment extends BaseFragment { | @@ -587,7 +598,7 @@ public class ElectionFragment extends BaseFragment { | ||
| 587 | it.startVote = true; | 598 | it.startVote = true; |
| 588 | it.modifyModel=false; | 599 | it.modifyModel=false; |
| 589 | } | 600 | } |
| 590 | - tvInfo.setText(getString(R.string.submited)); | 601 | + //tvInfo.setText(getString(R.string.submited)); |
| 591 | } | 602 | } |
| 592 | mAdapter.notifyDataSetChanged(); | 603 | mAdapter.notifyDataSetChanged(); |
| 593 | } | 604 | } |
| @@ -806,13 +817,19 @@ public class ElectionFragment extends BaseFragment { | @@ -806,13 +817,19 @@ public class ElectionFragment extends BaseFragment { | ||
| 806 | } | 817 | } |
| 807 | 818 | ||
| 808 | private void showResult(){ | 819 | private void showResult(){ |
| 809 | - tvResult.setText("已投票"); | 820 | + //tvResult.setText("已投票"); |
| 810 | tvResult.setVisibility(View.VISIBLE); | 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 | private void hideResult(){ | 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 | private void checkVoted() { | 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,7 +374,6 @@ public class ResultElectionFragment extends BaseFragment { | ||
| 374 | holder = new ViewHolder(); | 374 | holder = new ViewHolder(); |
| 375 | holder.tvNum = (TextView) convertView.findViewById(R.id.item_result_election_num); | 375 | holder.tvNum = (TextView) convertView.findViewById(R.id.item_result_election_num); |
| 376 | holder.tvName = (TextView) convertView.findViewById(R.id.item_result_election_name); | 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 | holder.tvAgree = (TextView) convertView.findViewById(R.id.item_result_election_agree); | 377 | holder.tvAgree = (TextView) convertView.findViewById(R.id.item_result_election_agree); |
| 379 | holder.tvOppose = (TextView) convertView.findViewById(R.id.item_result_election_oppose_num); | 378 | holder.tvOppose = (TextView) convertView.findViewById(R.id.item_result_election_oppose_num); |
| 380 | holder.tvAbstant = (TextView) convertView.findViewById(R.id.item_result_election_abstant_num); | 379 | holder.tvAbstant = (TextView) convertView.findViewById(R.id.item_result_election_abstant_num); |
| @@ -414,9 +413,9 @@ public class ResultElectionFragment extends BaseFragment { | @@ -414,9 +413,9 @@ public class ResultElectionFragment extends BaseFragment { | ||
| 414 | int width = metrics.widthPixels/5-80; | 413 | int width = metrics.widthPixels/5-80; |
| 415 | if(!TextUtils.isEmpty(it.name)){ | 414 | if(!TextUtils.isEmpty(it.name)){ |
| 416 | TextViewUtils.adjustTvTextSize(holder.tvName,width,it.name); | 415 | TextViewUtils.adjustTvTextSize(holder.tvName,width,it.name); |
| 417 | - } | 416 | + } |
| 418 | holder.tvName.setText(it.name); | 417 | holder.tvName.setText(it.name); |
| 419 | - holder.tvName.setGravity(Gravity.CENTER_VERTICAL); | 418 | + //holder.tvName.setGravity(Gravity.CENTER_VERTICAL); |
| 420 | holder.tvAgree.setText(String.valueOf(it.agreeNum)); | 419 | holder.tvAgree.setText(String.valueOf(it.agreeNum)); |
| 421 | holder.tvOppose.setText(String.valueOf(it.opposeNum)); | 420 | holder.tvOppose.setText(String.valueOf(it.opposeNum)); |
| 422 | holder.tvAbstant.setText(String.valueOf(it.abstantNum)); | 421 | holder.tvAbstant.setText(String.valueOf(it.abstantNum)); |
| @@ -430,13 +429,16 @@ public class ResultElectionFragment extends BaseFragment { | @@ -430,13 +429,16 @@ public class ResultElectionFragment extends BaseFragment { | ||
| 430 | holder.tvResult.setText(getString(R.string.pass)); | 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 | return convertView; | 436 | return convertView; |
| 434 | } | 437 | } |
| 435 | 438 | ||
| 436 | public final class ViewHolder { | 439 | public final class ViewHolder { |
| 437 | public TextView tvNum; | 440 | public TextView tvNum; |
| 438 | public TextView tvName; | 441 | public TextView tvName; |
| 439 | - public TextView tvVote; | ||
| 440 | public TextView tvAgree; | 442 | public TextView tvAgree; |
| 441 | public TextView tvOppose; | 443 | public TextView tvOppose; |
| 442 | public TextView tvAbstant; | 444 | public TextView tvAbstant; |
C5/app/src/main/res/drawable/oo_selector.xml
| @@ -2,32 +2,33 @@ | @@ -2,32 +2,33 @@ | ||
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > |
| 3 | 3 | ||
| 4 | <item android:state_checked="true" android:state_window_focused="false" | 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 | <item android:state_checked="false" android:state_window_focused="false" | 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 | <item android:state_checked="true" android:state_window_focused="true" | 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 | <item android:state_checked="false" android:state_window_focused="true" | 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 | <item android:state_checked="true" android:state_pressed="true" | 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 | <item android:state_checked="false" android:state_pressed="true" | 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 | <item android:state_checked="true" android:state_focused="true" | 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 | <item android:state_checked="false" android:state_focused="true" | 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 | <item android:state_checked="true" android:state_focused="false" | 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 | <item android:state_checked="false" android:state_focused="false" | 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,32 +3,32 @@ | ||
| 3 | 3 | ||
| 4 | 4 | ||
| 5 | <item android:state_checked="true" android:state_window_focused="false" | 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 | <item android:state_checked="false" android:state_window_focused="false" | 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 | <item android:state_checked="true" android:state_window_focused="true" | 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 | <item android:state_checked="false" android:state_window_focused="true" | 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 | <item android:state_checked="true" android:state_pressed="true" | 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 | <item android:state_checked="false" android:state_pressed="true" | 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 | <item android:state_checked="true" android:state_focused="true" | 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 | <item android:state_checked="false" android:state_focused="true" | 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 | <item android:state_checked="true" android:state_focused="false" | 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 | <item android:state_checked="false" android:state_focused="false" | 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,6 +12,33 @@ | ||
| 12 | android:textStyle="bold" | 12 | android:textStyle="bold" |
| 13 | android:textSize="18sp"/> | 13 | android:textSize="18sp"/> |
| 14 | <LinearLayout | 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 | android:layout_width="530dp" | 42 | android:layout_width="530dp" |
| 16 | android:layout_height="250dp" | 43 | android:layout_height="250dp" |
| 17 | android:layout_marginTop="10dp" | 44 | android:layout_marginTop="10dp" |
| @@ -213,31 +240,4 @@ | @@ -213,31 +240,4 @@ | ||
| 213 | android:layout_weight="1"></LinearLayout> | 240 | android:layout_weight="1"></LinearLayout> |
| 214 | </LinearLayout> | 241 | </LinearLayout> |
| 215 | </LinearLayout> | 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 | </LinearLayout> | 243 | </LinearLayout> |
C5/app/src/main/res/layout/fragment_custom_election.xml
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | android:id="@+id/line_panel" | 9 | android:id="@+id/line_panel" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | android:layout_height="wrap_content" | 11 | android:layout_height="wrap_content" |
| 12 | - android:background="@color/red" | 12 | + android:background="@color/red2" |
| 13 | android:orientation="horizontal" | 13 | android:orientation="horizontal" |
| 14 | android:paddingBottom="20dp" | 14 | android:paddingBottom="20dp" |
| 15 | android:paddingLeft="20dp" | 15 | android:paddingLeft="20dp" |
| @@ -22,18 +22,21 @@ | @@ -22,18 +22,21 @@ | ||
| 22 | android:layout_height="wrap_content" | 22 | android:layout_height="wrap_content" |
| 23 | android:layout_weight="1" | 23 | android:layout_weight="1" |
| 24 | android:ellipsize="end" | 24 | android:ellipsize="end" |
| 25 | + android:textStyle="bold" | ||
| 25 | android:lines="1" | 26 | android:lines="1" |
| 26 | android:text="票决民生实事项目" | 27 | android:text="票决民生实事项目" |
| 27 | android:textColor="@color/white" | 28 | android:textColor="@color/white" |
| 28 | - android:textSize="@dimen/big_text_p4" /> | 29 | + android:textSize="@dimen/px60dp" /> |
| 29 | 30 | ||
| 30 | <TextView | 31 | <TextView |
| 31 | android:id="@+id/title_info" | 32 | android:id="@+id/title_info" |
| 32 | android:layout_width="wrap_content" | 33 | android:layout_width="wrap_content" |
| 33 | android:layout_height="wrap_content" | 34 | android:layout_height="wrap_content" |
| 34 | android:text="" | 35 | android:text="" |
| 36 | + android:textStyle="bold" | ||
| 35 | android:layout_marginRight="20dp" | 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 | </LinearLayout> | 41 | </LinearLayout> |
| 39 | 42 | ||
| @@ -51,9 +54,10 @@ | @@ -51,9 +54,10 @@ | ||
| 51 | android:layout_alignParentLeft="true" | 54 | android:layout_alignParentLeft="true" |
| 52 | android:layout_centerVertical="true" | 55 | android:layout_centerVertical="true" |
| 53 | android:gravity="center" | 56 | android:gravity="center" |
| 57 | + android:textStyle="bold" | ||
| 54 | android:text="序号" | 58 | android:text="序号" |
| 55 | android:textColor="@color/gray" | 59 | android:textColor="@color/gray" |
| 56 | - android:textSize="@dimen/big_text_p5" /> | 60 | + android:textSize="@dimen/px40dp" /> |
| 57 | 61 | ||
| 58 | <!-- <View | 62 | <!-- <View |
| 59 | android:id="@+id/view_line" | 63 | android:id="@+id/view_line" |
| @@ -64,14 +68,15 @@ | @@ -64,14 +68,15 @@ | ||
| 64 | 68 | ||
| 65 | <TextView | 69 | <TextView |
| 66 | android:id="@+id/tv_name" | 70 | android:id="@+id/tv_name" |
| 67 | - android:layout_width="400dp" | 71 | + android:layout_width="@dimen/px1000dp" |
| 68 | android:layout_height="wrap_content" | 72 | android:layout_height="wrap_content" |
| 69 | android:layout_centerVertical="true" | 73 | android:layout_centerVertical="true" |
| 70 | android:layout_toRightOf="@id/tv_num" | 74 | android:layout_toRightOf="@id/tv_num" |
| 71 | android:gravity="center" | 75 | android:gravity="center" |
| 76 | + android:textStyle="bold" | ||
| 72 | android:text="项目" | 77 | android:text="项目" |
| 73 | android:textColor="@color/red" | 78 | android:textColor="@color/red" |
| 74 | - android:textSize="@dimen/big_text_p5" /> | 79 | + android:textSize="@dimen/px40dp" /> |
| 75 | 80 | ||
| 76 | <!-- <View | 81 | <!-- <View |
| 77 | android:layout_width="2px" | 82 | android:layout_width="2px" |
| @@ -85,11 +90,12 @@ | @@ -85,11 +90,12 @@ | ||
| 85 | android:layout_height="wrap_content" | 90 | android:layout_height="wrap_content" |
| 86 | android:gravity="center" | 91 | android:gravity="center" |
| 87 | android:layout_centerVertical="true" | 92 | android:layout_centerVertical="true" |
| 93 | + android:textStyle="bold" | ||
| 88 | android:text="赞成" | 94 | android:text="赞成" |
| 89 | android:textColor="@color/red" | 95 | android:textColor="@color/red" |
| 90 | android:layout_toRightOf="@id/tv_name" | 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 | <TextView | 100 | <TextView |
| 95 | android:id="@+id/tv_oppose" | 101 | android:id="@+id/tv_oppose" |
| @@ -98,10 +104,11 @@ | @@ -98,10 +104,11 @@ | ||
| 98 | android:gravity="center" | 104 | android:gravity="center" |
| 99 | android:layout_centerVertical="true" | 105 | android:layout_centerVertical="true" |
| 100 | android:text="反对" | 106 | android:text="反对" |
| 107 | + android:visibility="gone" | ||
| 101 | android:textColor="@color/red" | 108 | android:textColor="@color/red" |
| 102 | android:layout_toRightOf="@id/tv_agree" | 109 | android:layout_toRightOf="@id/tv_agree" |
| 103 | android:layout_marginLeft="40dp" | 110 | android:layout_marginLeft="40dp" |
| 104 | - android:textSize="@dimen/big_text_p5" /> | 111 | + android:textSize="@dimen/px40dp" /> |
| 105 | 112 | ||
| 106 | <TextView | 113 | <TextView |
| 107 | android:id="@+id/tv_abstain" | 114 | android:id="@+id/tv_abstain" |
| @@ -110,10 +117,11 @@ | @@ -110,10 +117,11 @@ | ||
| 110 | android:gravity="center" | 117 | android:gravity="center" |
| 111 | android:layout_centerVertical="true" | 118 | android:layout_centerVertical="true" |
| 112 | android:text="弃权" | 119 | android:text="弃权" |
| 120 | + android:visibility="gone" | ||
| 113 | android:textColor="@color/red" | 121 | android:textColor="@color/red" |
| 114 | android:layout_toRightOf="@id/tv_oppose" | 122 | android:layout_toRightOf="@id/tv_oppose" |
| 115 | android:layout_marginLeft="40dp" | 123 | android:layout_marginLeft="40dp" |
| 116 | - android:textSize="@dimen/big_text_p5" /> | 124 | + android:textSize="@dimen/px40dp" /> |
| 117 | 125 | ||
| 118 | </RelativeLayout> | 126 | </RelativeLayout> |
| 119 | 127 | ||
| @@ -129,27 +137,28 @@ | @@ -129,27 +137,28 @@ | ||
| 129 | 137 | ||
| 130 | <Button | 138 | <Button |
| 131 | android:id="@+id/election_btn_confirm" | 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 | android:layout_centerInParent="true" | 142 | android:layout_centerInParent="true" |
| 135 | android:background="@drawable/oppos_selector" | 143 | android:background="@drawable/oppos_selector" |
| 136 | android:text="@string/confirm_submit" | 144 | android:text="@string/confirm_submit" |
| 137 | android:textColor="@color/white" | 145 | android:textColor="@color/white" |
| 138 | - android:textSize="@dimen/big_text_p4" | 146 | + android:textSize="@dimen/px60dp" |
| 139 | android:textStyle="bold" /> | 147 | android:textStyle="bold" /> |
| 140 | 148 | ||
| 141 | <Button | 149 | <Button |
| 142 | android:id="@+id/election_btn_modify" | 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 | android:layout_centerInParent="true" | 153 | android:layout_centerInParent="true" |
| 146 | - android:background="@drawable/signin_selector" | 154 | + android:background="@drawable/agree_selector" |
| 147 | android:text="@string/modify" | 155 | android:text="@string/modify" |
| 148 | android:textColor="@color/white" | 156 | android:textColor="@color/white" |
| 149 | - android:textSize="@dimen/big_text_p4" | 157 | + android:textSize="@dimen/px60dp" |
| 150 | android:textStyle="bold" | 158 | android:textStyle="bold" |
| 151 | android:visibility="invisible" /> | 159 | android:visibility="invisible" /> |
| 152 | 160 | ||
| 161 | + | ||
| 153 | <TextView | 162 | <TextView |
| 154 | android:id="@+id/tv_tip_info" | 163 | android:id="@+id/tv_tip_info" |
| 155 | android:layout_width="wrap_content" | 164 | android:layout_width="wrap_content" |
| @@ -181,6 +190,7 @@ | @@ -181,6 +190,7 @@ | ||
| 181 | android:layout_marginRight="20dp" | 190 | android:layout_marginRight="20dp" |
| 182 | android:layout_marginTop="50dp" | 191 | android:layout_marginTop="50dp" |
| 183 | android:background="@drawable/right_control" | 192 | android:background="@drawable/right_control" |
| 193 | + android:visibility="gone" | ||
| 184 | android:orientation="vertical"> | 194 | android:orientation="vertical"> |
| 185 | 195 | ||
| 186 | <ImageView | 196 | <ImageView |
| @@ -255,20 +265,42 @@ | @@ -255,20 +265,42 @@ | ||
| 255 | android:textStyle="bold" /> | 265 | android:textStyle="bold" /> |
| 256 | </RelativeLayout> | 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 | </RelativeLayout> | 306 | </RelativeLayout> |
| 275 | \ No newline at end of file | 307 | \ No newline at end of file |
C5/app/src/main/res/layout/fragment_election.xml
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | android:id="@+id/line_panel" | 9 | android:id="@+id/line_panel" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | android:layout_height="wrap_content" | 11 | android:layout_height="wrap_content" |
| 12 | - android:background="@color/red" | 12 | + android:background="@color/red2" |
| 13 | android:orientation="horizontal" | 13 | android:orientation="horizontal" |
| 14 | android:paddingBottom="20dp" | 14 | android:paddingBottom="20dp" |
| 15 | android:paddingLeft="20dp" | 15 | android:paddingLeft="20dp" |
| @@ -24,6 +24,7 @@ | @@ -24,6 +24,7 @@ | ||
| 24 | android:ellipsize="end" | 24 | android:ellipsize="end" |
| 25 | android:lines="1" | 25 | android:lines="1" |
| 26 | android:text="@string/sunvote_no_paper" | 26 | android:text="@string/sunvote_no_paper" |
| 27 | + android:textStyle="bold" | ||
| 27 | android:textColor="@color/white" | 28 | android:textColor="@color/white" |
| 28 | android:textSize="@dimen/big_text_p4" /> | 29 | android:textSize="@dimen/big_text_p4" /> |
| 29 | 30 | ||
| @@ -34,6 +35,7 @@ | @@ -34,6 +35,7 @@ | ||
| 34 | android:layout_marginRight="20dp" | 35 | android:layout_marginRight="20dp" |
| 35 | android:textColor="@color/white" | 36 | android:textColor="@color/white" |
| 36 | android:text="" | 37 | android:text="" |
| 38 | + android:textStyle="bold" | ||
| 37 | android:textSize="@dimen/big_text_p5" /> | 39 | android:textSize="@dimen/big_text_p5" /> |
| 38 | 40 | ||
| 39 | <Button | 41 | <Button |
| @@ -43,6 +45,7 @@ | @@ -43,6 +45,7 @@ | ||
| 43 | android:background="@drawable/agree_selector" | 45 | android:background="@drawable/agree_selector" |
| 44 | android:text="@string/select_other" | 46 | android:text="@string/select_other" |
| 45 | android:textColor="@color/white" | 47 | android:textColor="@color/white" |
| 48 | + android:textStyle="bold" | ||
| 46 | android:layout_marginRight="@dimen/px40dp" | 49 | android:layout_marginRight="@dimen/px40dp" |
| 47 | android:textSize="@dimen/big_text_p5" /> | 50 | android:textSize="@dimen/big_text_p5" /> |
| 48 | 51 | ||
| @@ -125,7 +128,7 @@ | @@ -125,7 +128,7 @@ | ||
| 125 | android:layout_height="@dimen/px110dp" | 128 | android:layout_height="@dimen/px110dp" |
| 126 | android:layout_centerInParent="true" | 129 | android:layout_centerInParent="true" |
| 127 | android:layout_marginRight="@dimen/content_margin" | 130 | android:layout_marginRight="@dimen/content_margin" |
| 128 | - android:background="@drawable/signin_selector" | 131 | + android:background="@drawable/agree_selector" |
| 129 | android:text="@string/modify" | 132 | android:text="@string/modify" |
| 130 | android:textColor="@color/white" | 133 | android:textColor="@color/white" |
| 131 | android:textSize="@dimen/px60dp" | 134 | android:textSize="@dimen/px60dp" |
| @@ -148,6 +151,7 @@ | @@ -148,6 +151,7 @@ | ||
| 148 | android:layout_height="wrap_content" | 151 | android:layout_height="wrap_content" |
| 149 | android:layout_gravity="center_vertical" | 152 | android:layout_gravity="center_vertical" |
| 150 | android:layout_marginLeft="150dp" | 153 | android:layout_marginLeft="150dp" |
| 154 | + android:textStyle="bold" | ||
| 151 | android:gravity="center" | 155 | android:gravity="center" |
| 152 | android:text="序号" | 156 | android:text="序号" |
| 153 | android:textColor="@color/gray" | 157 | android:textColor="@color/gray" |
| @@ -161,6 +165,7 @@ | @@ -161,6 +165,7 @@ | ||
| 161 | android:layout_marginLeft="40dp" | 165 | android:layout_marginLeft="40dp" |
| 162 | android:layout_weight="1" | 166 | android:layout_weight="1" |
| 163 | android:gravity="left|center_vertical" | 167 | android:gravity="left|center_vertical" |
| 168 | + android:textStyle="bold" | ||
| 164 | android:text="侯选人" | 169 | android:text="侯选人" |
| 165 | android:textColor="@color/red" | 170 | android:textColor="@color/red" |
| 166 | android:textSize="@dimen/big_text_p6" /> | 171 | android:textSize="@dimen/big_text_p6" /> |
| @@ -175,6 +180,7 @@ | @@ -175,6 +180,7 @@ | ||
| 175 | android:layout_height="wrap_content" | 180 | android:layout_height="wrap_content" |
| 176 | android:layout_gravity="center_vertical" | 181 | android:layout_gravity="center_vertical" |
| 177 | android:text="@string/agree" | 182 | android:text="@string/agree" |
| 183 | + android:textStyle="bold" | ||
| 178 | android:textColor="@color/red" | 184 | android:textColor="@color/red" |
| 179 | android:textSize="@dimen/big_text_p6" /> | 185 | android:textSize="@dimen/big_text_p6" /> |
| 180 | 186 | ||
| @@ -184,6 +190,7 @@ | @@ -184,6 +190,7 @@ | ||
| 184 | android:layout_gravity="center_vertical" | 190 | android:layout_gravity="center_vertical" |
| 185 | android:layout_marginLeft="@dimen/button_to_content" | 191 | android:layout_marginLeft="@dimen/button_to_content" |
| 186 | android:text="@string/oppose" | 192 | android:text="@string/oppose" |
| 193 | + android:textStyle="bold" | ||
| 187 | android:textColor="@color/red" | 194 | android:textColor="@color/red" |
| 188 | android:textSize="@dimen/big_text_p6" /> | 195 | android:textSize="@dimen/big_text_p6" /> |
| 189 | 196 | ||
| @@ -193,6 +200,7 @@ | @@ -193,6 +200,7 @@ | ||
| 193 | android:layout_gravity="center_vertical" | 200 | android:layout_gravity="center_vertical" |
| 194 | android:layout_marginLeft="@dimen/button_to_content" | 201 | android:layout_marginLeft="@dimen/button_to_content" |
| 195 | android:text="@string/delete" | 202 | android:text="@string/delete" |
| 203 | + android:textStyle="bold" | ||
| 196 | android:textColor="@color/red" | 204 | android:textColor="@color/red" |
| 197 | android:textSize="@dimen/big_text_p6" | 205 | android:textSize="@dimen/big_text_p6" |
| 198 | android:visibility="gone" /> | 206 | android:visibility="gone" /> |
| @@ -279,6 +287,7 @@ | @@ -279,6 +287,7 @@ | ||
| 279 | android:layout_height="@dimen/px120dp" | 287 | android:layout_height="@dimen/px120dp" |
| 280 | android:text="@string/input_other" | 288 | android:text="@string/input_other" |
| 281 | android:layout_marginRight="@dimen/px90dp" | 289 | android:layout_marginRight="@dimen/px90dp" |
| 290 | + android:textStyle="bold" | ||
| 282 | android:textColor="@color/black" | 291 | android:textColor="@color/black" |
| 283 | android:textSize="@dimen/px60dp" /> | 292 | android:textSize="@dimen/px60dp" /> |
| 284 | 293 | ||
| @@ -308,7 +317,7 @@ | @@ -308,7 +317,7 @@ | ||
| 308 | android:id="@+id/election_add_edit_btn_ok" | 317 | android:id="@+id/election_add_edit_btn_ok" |
| 309 | android:layout_width="@dimen/px360dp" | 318 | android:layout_width="@dimen/px360dp" |
| 310 | android:layout_height="@dimen/px120dp" | 319 | android:layout_height="@dimen/px120dp" |
| 311 | - android:layout_marginLeft="@dimen/px67dp" | 320 | + android:layout_marginLeft="@dimen/px80dp" |
| 312 | android:background="@drawable/btn_agree" | 321 | android:background="@drawable/btn_agree" |
| 313 | android:text="@string/ok" | 322 | android:text="@string/ok" |
| 314 | android:textColor="@color/white" | 323 | android:textColor="@color/white" |
| @@ -320,7 +329,7 @@ | @@ -320,7 +329,7 @@ | ||
| 320 | android:layout_width="@dimen/px360dp" | 329 | android:layout_width="@dimen/px360dp" |
| 321 | android:layout_height="@dimen/px120dp" | 330 | android:layout_height="@dimen/px120dp" |
| 322 | android:background="@drawable/oppos_selector" | 331 | android:background="@drawable/oppos_selector" |
| 323 | - android:layout_marginLeft="@dimen/px90dp" | 332 | + android:layout_marginLeft="@dimen/px80dp" |
| 324 | android:text="@string/cancel" | 333 | android:text="@string/cancel" |
| 325 | android:textColor="@color/white" | 334 | android:textColor="@color/white" |
| 326 | android:textSize="@dimen/big_text_p4" | 335 | android:textSize="@dimen/big_text_p4" |
| @@ -414,19 +423,41 @@ | @@ -414,19 +423,41 @@ | ||
| 414 | android:textStyle="bold" /> | 423 | android:textStyle="bold" /> |
| 415 | </RelativeLayout> | 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 | </RelativeLayout> | 463 | </RelativeLayout> |
| 433 | \ No newline at end of file | 464 | \ No newline at end of file |
C5/app/src/main/res/layout/fragment_result_election.xml
| @@ -2,14 +2,14 @@ | @@ -2,14 +2,14 @@ | ||
| 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
| 4 | android:layout_height="match_parent" | 4 | android:layout_height="match_parent" |
| 5 | - android:background="#ff004586" | 5 | + android:background="#0952b5" |
| 6 | android:orientation="vertical"> | 6 | android:orientation="vertical"> |
| 7 | 7 | ||
| 8 | <RelativeLayout | 8 | <RelativeLayout |
| 9 | android:id="@+id/title_linear" | 9 | android:id="@+id/title_linear" |
| 10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
| 11 | android:layout_height="wrap_content" | 11 | android:layout_height="wrap_content" |
| 12 | - android:layout_marginTop="10dp"> | 12 | + android:layout_marginTop="@dimen/px110dp"> |
| 13 | 13 | ||
| 14 | <ImageButton | 14 | <ImageButton |
| 15 | android:id="@+id/fragment_result_election_btn_back" | 15 | android:id="@+id/fragment_result_election_btn_back" |
| @@ -35,27 +35,65 @@ | @@ -35,27 +35,65 @@ | ||
| 35 | android:textStyle="bold" /> | 35 | android:textStyle="bold" /> |
| 36 | </RelativeLayout> | 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 | android:layout_height="wrap_content" | 41 | android:layout_height="wrap_content" |
| 42 | - android:layout_below="@id/title_linear" | 42 | + android:layout_marginTop="@dimen/px60dp" |
| 43 | android:layout_centerHorizontal="true" | 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 | <LinearLayout | 91 | <LinearLayout |
| 54 | android:id="@+id/data_title_layout" | 92 | android:id="@+id/data_title_layout" |
| 55 | android:layout_width="match_parent" | 93 | android:layout_width="match_parent" |
| 56 | android:layout_height="wrap_content" | 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 | android:orientation="horizontal" | 97 | android:orientation="horizontal" |
| 60 | android:paddingRight="80dp"> | 98 | android:paddingRight="80dp"> |
| 61 | 99 | ||
| @@ -65,9 +103,9 @@ | @@ -65,9 +103,9 @@ | ||
| 65 | android:layout_height="match_parent" | 103 | android:layout_height="match_parent" |
| 66 | android:gravity="center" | 104 | android:gravity="center" |
| 67 | android:paddingLeft="@dimen/content_margin" | 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 | android:textStyle="bold" /> | 109 | android:textStyle="bold" /> |
| 72 | 110 | ||
| 73 | <TextView | 111 | <TextView |
| @@ -75,9 +113,10 @@ | @@ -75,9 +113,10 @@ | ||
| 75 | android:layout_width="0dp" | 113 | android:layout_width="0dp" |
| 76 | android:layout_height="match_parent" | 114 | android:layout_height="match_parent" |
| 77 | android:layout_weight="1" | 115 | android:layout_weight="1" |
| 116 | + android:gravity="center" | ||
| 78 | android:text="@string/name_xpad" | 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 | android:textStyle="bold" /> | 120 | android:textStyle="bold" /> |
| 82 | 121 | ||
| 83 | <TextView | 122 | <TextView |
| @@ -85,9 +124,9 @@ | @@ -85,9 +124,9 @@ | ||
| 85 | android:layout_width="140dp" | 124 | android:layout_width="140dp" |
| 86 | android:layout_height="match_parent" | 125 | android:layout_height="match_parent" |
| 87 | android:gravity="center" | 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 | android:textStyle="bold" /> | 130 | android:textStyle="bold" /> |
| 92 | 131 | ||
| 93 | <TextView | 132 | <TextView |
| @@ -95,9 +134,9 @@ | @@ -95,9 +134,9 @@ | ||
| 95 | android:layout_width="140dp" | 134 | android:layout_width="140dp" |
| 96 | android:layout_height="match_parent" | 135 | android:layout_height="match_parent" |
| 97 | android:gravity="center" | 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 | android:textStyle="bold" /> | 140 | android:textStyle="bold" /> |
| 102 | 141 | ||
| 103 | <TextView | 142 | <TextView |
| @@ -105,9 +144,9 @@ | @@ -105,9 +144,9 @@ | ||
| 105 | android:layout_width="140dp" | 144 | android:layout_width="140dp" |
| 106 | android:layout_height="match_parent" | 145 | android:layout_height="match_parent" |
| 107 | android:gravity="center" | 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 | android:textStyle="bold" /> | 150 | android:textStyle="bold" /> |
| 112 | 151 | ||
| 113 | <TextView | 152 | <TextView |
| @@ -118,74 +157,18 @@ | @@ -118,74 +157,18 @@ | ||
| 118 | android:layout_centerVertical="true" | 157 | android:layout_centerVertical="true" |
| 119 | android:gravity="center" | 158 | android:gravity="center" |
| 120 | android:text="@string/result" | 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 | android:textColor="@color/white" | 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 | android:textStyle="bold" /> | 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 | </LinearLayout> | 163 | </LinearLayout> |
| 180 | 164 | ||
| 181 | <ListView | 165 | <ListView |
| 182 | android:id="@+id/fragment_result_election_list" | 166 | android:id="@+id/fragment_result_election_list" |
| 183 | android:layout_width="match_parent" | 167 | android:layout_width="match_parent" |
| 184 | android:layout_height="match_parent" | 168 | android:layout_height="match_parent" |
| 185 | - android:layout_above="@id/bottom_linear" | ||
| 186 | android:layout_below="@id/data_title_layout" | 169 | android:layout_below="@id/data_title_layout" |
| 187 | android:layout_marginBottom="@dimen/content_margin" | 170 | android:layout_marginBottom="@dimen/content_margin" |
| 188 | - android:divider="@color/votebakground" | 171 | + android:layout_marginTop="@dimen/px20dp" |
| 172 | + android:divider="@color/blue1" | ||
| 189 | android:dividerHeight="1dp" /> | 173 | android:dividerHeight="1dp" /> |
| 190 | - | ||
| 191 | </RelativeLayout> | 174 | </RelativeLayout> |
| 192 | \ No newline at end of file | 175 | \ No newline at end of file |
C5/app/src/main/res/layout/list_custom_election_item.xml
| @@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
| 6 | 6 | ||
| 7 | <RelativeLayout | 7 | <RelativeLayout |
| 8 | android:layout_width="match_parent" | 8 | android:layout_width="match_parent" |
| 9 | - android:layout_height="match_parent" | 9 | + android:layout_height="@dimen/px120dp" |
| 10 | android:paddingLeft="20dp" | 10 | android:paddingLeft="20dp" |
| 11 | android:paddingRight="20dp" | 11 | android:paddingRight="20dp" |
| 12 | android:layout_alignParentTop="true" | 12 | android:layout_alignParentTop="true" |
| @@ -21,8 +21,8 @@ | @@ -21,8 +21,8 @@ | ||
| 21 | android:layout_centerVertical="true" | 21 | android:layout_centerVertical="true" |
| 22 | android:gravity="center" | 22 | android:gravity="center" |
| 23 | android:text="" | 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 | <!-- <View | 27 | <!-- <View |
| 28 | android:id="@+id/election_item_middle" | 28 | android:id="@+id/election_item_middle" |
| @@ -33,14 +33,14 @@ | @@ -33,14 +33,14 @@ | ||
| 33 | --> | 33 | --> |
| 34 | <TextView | 34 | <TextView |
| 35 | android:id="@+id/list_election_item_name" | 35 | android:id="@+id/list_election_item_name" |
| 36 | - android:layout_width="400dp" | 36 | + android:layout_width="@dimen/px1000dp" |
| 37 | android:layout_height="wrap_content" | 37 | android:layout_height="wrap_content" |
| 38 | android:layout_centerVertical="true" | 38 | android:layout_centerVertical="true" |
| 39 | android:layout_toRightOf="@id/list_election_item_num" | 39 | android:layout_toRightOf="@id/list_election_item_num" |
| 40 | android:gravity="center" | 40 | android:gravity="center" |
| 41 | android:text="" | 41 | android:text="" |
| 42 | android:textColor="@color/black" | 42 | android:textColor="@color/black" |
| 43 | - android:textSize="@dimen/big_text_p5" /> | 43 | + android:textSize="@dimen/px40dp" /> |
| 44 | 44 | ||
| 45 | <!-- <View | 45 | <!-- <View |
| 46 | android:layout_width="2px" | 46 | android:layout_width="2px" |
| @@ -57,33 +57,35 @@ | @@ -57,33 +57,35 @@ | ||
| 57 | 57 | ||
| 58 | <RadioButton | 58 | <RadioButton |
| 59 | android:id="@+id/list_election_item_oo" | 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 | android:layout_centerVertical="true" | 62 | android:layout_centerVertical="true" |
| 63 | android:layout_marginTop="10dp" | 63 | android:layout_marginTop="10dp" |
| 64 | android:button="@null" | 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 | android:visibility="visible" /> | 67 | android:visibility="visible" /> |
| 68 | 68 | ||
| 69 | <RadioButton | 69 | <RadioButton |
| 70 | android:id="@+id/list_election_item_xx" | 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 | android:layout_centerVertical="true" | 73 | android:layout_centerVertical="true" |
| 74 | android:layout_marginTop="10dp" | 74 | android:layout_marginTop="10dp" |
| 75 | android:button="@null" | 75 | android:button="@null" |
| 76 | android:background="@drawable/xx_selector" | 76 | android:background="@drawable/xx_selector" |
| 77 | + android:visibility="gone" | ||
| 77 | android:layout_marginLeft="50dp" | 78 | android:layout_marginLeft="50dp" |
| 78 | android:layout_toRightOf="@id/list_election_item_oo" /> | 79 | android:layout_toRightOf="@id/list_election_item_oo" /> |
| 79 | 80 | ||
| 80 | <RadioButton | 81 | <RadioButton |
| 81 | android:id="@+id/list_election_item_abstain" | 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 | android:layout_centerVertical="true" | 85 | android:layout_centerVertical="true" |
| 85 | android:layout_marginTop="10dp" | 86 | android:layout_marginTop="10dp" |
| 86 | android:button="@null" | 87 | android:button="@null" |
| 88 | + android:visibility="gone" | ||
| 87 | android:background="@drawable/eab_selector" | 89 | android:background="@drawable/eab_selector" |
| 88 | android:layout_marginLeft="50dp" | 90 | android:layout_marginLeft="50dp" |
| 89 | android:layout_toRightOf="@id/list_election_item_xx" /> | 91 | android:layout_toRightOf="@id/list_election_item_xx" /> |
C5/app/src/main/res/layout/list_election_item.xml
| @@ -153,7 +153,7 @@ | @@ -153,7 +153,7 @@ | ||
| 153 | android:visibility="invisible" | 153 | android:visibility="invisible" |
| 154 | android:layout_marginTop="@dimen/inner_button_margin" | 154 | android:layout_marginTop="@dimen/inner_button_margin" |
| 155 | android:button="@null" | 155 | android:button="@null" |
| 156 | - android:background="@drawable/delete"/> | 156 | + android:background="@drawable/ic_delete"/> |
| 157 | </RadioGroup> | 157 | </RadioGroup> |
| 158 | </LinearLayout> | 158 | </LinearLayout> |
| 159 | </RelativeLayout> | 159 | </RelativeLayout> |
| 160 | \ No newline at end of file | 160 | \ No newline at end of file |
C5/app/src/main/res/layout/list_result_election_item.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
| 4 | - android:layout_height="wrap_content" | 4 | + android:layout_height="@dimen/px110dp" |
| 5 | android:layout_marginBottom="@dimen/content_margin" | 5 | android:layout_marginBottom="@dimen/content_margin" |
| 6 | android:layout_marginTop="@dimen/content_margin" | 6 | android:layout_marginTop="@dimen/content_margin" |
| 7 | + android:minHeight="@dimen/px110dp" | ||
| 7 | android:paddingRight="80dp"> | 8 | android:paddingRight="80dp"> |
| 8 | 9 | ||
| 9 | <TextView | 10 | <TextView |
| @@ -15,8 +16,8 @@ | @@ -15,8 +16,8 @@ | ||
| 15 | android:paddingLeft="@dimen/content_margin" | 16 | android:paddingLeft="@dimen/content_margin" |
| 16 | android:text="@string/name_index" | 17 | android:text="@string/name_index" |
| 17 | android:textColor="@color/white" | 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 | <TextView | 22 | <TextView |
| 22 | android:id="@+id/item_result_election_name" | 23 | android:id="@+id/item_result_election_name" |
| @@ -25,7 +26,8 @@ | @@ -25,7 +26,8 @@ | ||
| 25 | android:layout_weight="1" | 26 | android:layout_weight="1" |
| 26 | android:text="@string/name_xpad" | 27 | android:text="@string/name_xpad" |
| 27 | android:textColor="@color/white" | 28 | android:textColor="@color/white" |
| 28 | - android:textSize="@dimen/big_text_p4" | 29 | + android:gravity="center" |
| 30 | + android:textSize="@dimen/px48dp" | ||
| 29 | android:textStyle="bold" /> | 31 | android:textStyle="bold" /> |
| 30 | 32 | ||
| 31 | <TextView | 33 | <TextView |
| @@ -35,7 +37,7 @@ | @@ -35,7 +37,7 @@ | ||
| 35 | android:gravity="center" | 37 | android:gravity="center" |
| 36 | android:text="@string/agree_num" | 38 | android:text="@string/agree_num" |
| 37 | android:textColor="@color/white" | 39 | android:textColor="@color/white" |
| 38 | - android:textSize="@dimen/big_text_p4" | 40 | + android:textSize="@dimen/px48dp" |
| 39 | android:textStyle="bold" /> | 41 | android:textStyle="bold" /> |
| 40 | 42 | ||
| 41 | <TextView | 43 | <TextView |
| @@ -45,8 +47,8 @@ | @@ -45,8 +47,8 @@ | ||
| 45 | android:gravity="center" | 47 | android:gravity="center" |
| 46 | android:text="@string/oppose_num" | 48 | android:text="@string/oppose_num" |
| 47 | android:textColor="@color/white" | 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 | <TextView | 53 | <TextView |
| 52 | android:id="@+id/item_result_election_abstant_num" | 54 | android:id="@+id/item_result_election_abstant_num" |
| @@ -55,7 +57,7 @@ | @@ -55,7 +57,7 @@ | ||
| 55 | android:gravity="center" | 57 | android:gravity="center" |
| 56 | android:text="@string/abstant_num" | 58 | android:text="@string/abstant_num" |
| 57 | android:textColor="@color/white" | 59 | android:textColor="@color/white" |
| 58 | - android:textSize="@dimen/big_text_p4" | 60 | + android:textSize="@dimen/px48dp" |
| 59 | android:textStyle="bold" /> | 61 | android:textStyle="bold" /> |
| 60 | 62 | ||
| 61 | <TextView | 63 | <TextView |
| @@ -65,7 +67,6 @@ | @@ -65,7 +67,6 @@ | ||
| 65 | android:gravity="center" | 67 | android:gravity="center" |
| 66 | android:text="@string/result" | 68 | android:text="@string/result" |
| 67 | android:textColor="@color/white" | 69 | android:textColor="@color/white" |
| 68 | - android:textSize="@dimen/big_text_p4" | 70 | + android:textSize="@dimen/px48dp" |
| 69 | android:textStyle="bold" /> | 71 | android:textStyle="bold" /> |
| 70 | - | ||
| 71 | </LinearLayout> | 72 | </LinearLayout> |
C5/app/src/main/res/values/color.xml
| @@ -167,4 +167,7 @@ | @@ -167,4 +167,7 @@ | ||
| 167 | <color name="green1">#00964d</color> <!--绿色 --> | 167 | <color name="green1">#00964d</color> <!--绿色 --> |
| 168 | <color name="red1">#d50c00</color> <!--红色 --> | 168 | <color name="red1">#d50c00</color> <!--红色 --> |
| 169 | <color name="red2">#ac1007</color> <!--红色 --> | 169 | <color name="red2">#ac1007</color> <!--红色 --> |
| 170 | + | ||
| 171 | + <color name="blue1">#5386cb</color> <!--绿色 --> | ||
| 172 | + <color name="blue2">#084aa3</color> <!--红色 --> | ||
| 170 | </resources> | 173 | </resources> |
| 171 | \ No newline at end of file | 174 | \ No newline at end of file |
C5/app/src/main/res/values/strings.xml
| @@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
| 16 | <string name="base_connecting">基站连接中</string> | 16 | <string name="base_connecting">基站连接中</string> |
| 17 | <string name="keypad_test">键盘测试</string> | 17 | <string name="keypad_test">键盘测试</string> |
| 18 | <string name="sunvote_no_paper">无纸化会议</string> | 18 | <string name="sunvote_no_paper">无纸化会议</string> |
| 19 | - <string name="submiting">提交中</string> | 19 | + <string name="submiting">提交中...</string> |
| 20 | <string name="modify">修改</string> | 20 | <string name="modify">修改</string> |
| 21 | <string name="doc_title">会议内容</string> | 21 | <string name="doc_title">会议内容</string> |
| 22 | <string name="page_up">上 翻</string> | 22 | <string name="page_up">上 翻</string> |
| @@ -139,7 +139,7 @@ | @@ -139,7 +139,7 @@ | ||
| 139 | <string name="modify_id_msg">请2秒内在主控端完成</string> | 139 | <string name="modify_id_msg">请2秒内在主控端完成</string> |
| 140 | 140 | ||
| 141 | <string name="service_paper">白纸</string> | 141 | <string name="service_paper">白纸</string> |
| 142 | - | 142 | + <string name="vote_num">票数</string> |
| 143 | 143 | ||
| 144 | <string name="name_xpad">姓名</string> | 144 | <string name="name_xpad">姓名</string> |
| 145 | <string name="agree_num">赞成票数</string> | 145 | <string name="agree_num">赞成票数</string> |