Commit ab44099d61a49ebe6bb213a485d63b5843f5c44f
1 parent
793e2ae4
修改结果显示不正确
Showing
3 changed files
with
7 additions
and
6 deletions
C5/app/src/main/java/com/sunvote/xpadapp/fragments/ResultVoteFragment.java
@@ -192,16 +192,16 @@ public class ResultVoteFragment extends BaseFragment { | @@ -192,16 +192,16 @@ public class ResultVoteFragment extends BaseFragment { | ||
192 | if (voteInfo.resultInfo.num5 != 0xffff) { | 192 | if (voteInfo.resultInfo.num5 != 0xffff) { |
193 | dataTitleLayout2.setVisibility(View.VISIBLE); | 193 | dataTitleLayout2.setVisibility(View.VISIBLE); |
194 | String text = "" + voteInfo.resultInfo.num5 ; | 194 | String text = "" + voteInfo.resultInfo.num5 ; |
195 | - if(szc != null && !"".equals(szc)){ | ||
196 | - text += "(" + szc + "%)" ; | 195 | + if(sfd != null && !"".equals(sfd)){ |
196 | + text += "(" + sfd + "%)" ; | ||
197 | } | 197 | } |
198 | ((TextView)(dataTitleLayout2.findViewById(R.id.data_title_layout2_text2))).setText(text); | 198 | ((TextView)(dataTitleLayout2.findViewById(R.id.data_title_layout2_text2))).setText(text); |
199 | } | 199 | } |
200 | if (voteInfo.resultInfo.num6 != 0xffff) { | 200 | if (voteInfo.resultInfo.num6 != 0xffff) { |
201 | dataTitleLayout1.setVisibility(View.VISIBLE); | 201 | dataTitleLayout1.setVisibility(View.VISIBLE); |
202 | String text = "" + voteInfo.resultInfo.num6 ; | 202 | String text = "" + voteInfo.resultInfo.num6 ; |
203 | - if(szc != null && !"".equals(szc)){ | ||
204 | - text += "(" + szc + "%)" ; | 203 | + if(swa != null && !"".equals(swa)){ |
204 | + text += "(" + swa + "%)" ; | ||
205 | } | 205 | } |
206 | ((TextView)(dataTitleLayout3.findViewById(R.id.data_title_layout3_text2))).setText(text); | 206 | ((TextView)(dataTitleLayout3.findViewById(R.id.data_title_layout3_text2))).setText(text); |
207 | } | 207 | } |
C5/app/src/main/java/com/sunvote/xpadapp/fragments/SingleTitleFragment.java
@@ -458,6 +458,7 @@ public class SingleTitleFragment extends BaseFragment implements ContentVoteOnBa | @@ -458,6 +458,7 @@ public class SingleTitleFragment extends BaseFragment implements ContentVoteOnBa | ||
458 | private void showResult() { | 458 | private void showResult() { |
459 | if (bill.voteResult > 0) { | 459 | if (bill.voteResult > 0) { |
460 | ivReuslt.setVisibility(View.INVISIBLE); | 460 | ivReuslt.setVisibility(View.INVISIBLE); |
461 | + singlevoteTvTipsLayout.setVisibility(View.GONE); | ||
461 | new Handler(Looper.getMainLooper()).postDelayed(new Runnable() { | 462 | new Handler(Looper.getMainLooper()).postDelayed(new Runnable() { |
462 | @Override | 463 | @Override |
463 | public void run() { | 464 | public void run() { |
C5/app/src/main/res/layout/fragment_singlevote.xml
@@ -148,8 +148,8 @@ | @@ -148,8 +148,8 @@ | ||
148 | 148 | ||
149 | <TextView | 149 | <TextView |
150 | android:id="@+id/singlevote_tv_tips" | 150 | android:id="@+id/singlevote_tv_tips" |
151 | - android:layout_width="200dp" | ||
152 | - android:layout_height="80dp" | 151 | + android:layout_width="@dimen/px554dp" |
152 | + android:layout_height="@dimen/px133dp" | ||
153 | android:layout_centerHorizontal="true" | 153 | android:layout_centerHorizontal="true" |
154 | android:gravity="center" | 154 | android:gravity="center" |
155 | android:text="@string/submiting" | 155 | android:text="@string/submiting" |