Blame view

C5/app/src/main/java/com/sunvote/xpadapp/fragments/SinginResultFragment.java 1.11 KB
4c3de86c   孙向锦   UI改版第一版
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  package com.sunvote.xpadapp.fragments;
  
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.TextView;
  
  import com.sunvote.xpadapp.R;
  import com.sunvote.xpadapp.base.BaseFragment;
  import com.sunvote.xpadcomm.XPadApiInterface.VoteInfo;
  
  public class SinginResultFragment extends BaseFragment {
  
      private VoteInfo.ResultInfo resultInfo;
  
      public void setResultInfo(VoteInfo.ResultInfo resultInfo) {
          this.resultInfo = resultInfo;
      }
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.fragment_signin_result_vote, container, false);
          TextView shidaoresult = view.findViewById(R.id.shidaoresult);
          TextView yingdaoresult = view.findViewById(R.id.yingdaoresult);
          TextView weidaoresult = view.findViewById(R.id.weidaoresult);
          shidaoresult.setText("" + resultInfo.num3);
          yingdaoresult.setText("" + resultInfo.num2);
          weidaoresult.setText("" + resultInfo.num1);
          return view;
      }
  
  }