Ejemplo n.º 1
0
 @Override
 public String getShareString() {
   // TODO Auto-generated method stub
   StringBuffer str = new StringBuffer();
   try {
     str.append("#如意彩客户端#,").append("大乐透第" + json.getString("batchCode") + "期,");
     str.append(
         context.getString(R.string.prizedetail_opentime) + json.getString("openTime") + ",");
     str.append("开奖号码:" + wincode + ",");
     str.append(
         context.getString(R.string.prizedetail_thebatchcodeamt)
             + PublicMethod.toIntYuan(json.getString("sellTotalAmount"))
             + context.getString(R.string.game_card_yuan)
             + ",");
     str.append(
         "奖池奖金"
             + PublicMethod.toIntYuan(json.getString("prizePoolTotalAmount"))
             + context.getString(R.string.game_card_yuan)
             + ",");
     str.append("在@如意彩 买彩票,中奖福地,精“彩”不断!也许下一个大奖就属于您!");
   } catch (JSONException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return str.toString();
 }
Ejemplo n.º 2
0
 @Override
 public void initLotonoView(JSONObject PrizeDetailJson) throws JSONException {
   // TODO Auto-generated method stub
   prizeBatchCode.setText("22Ñ¡5    µÚ" + PrizeDetailJson.getString("batchCode") + "ÆÚ");
   prizeDate.setText(
       context.getString(R.string.prizedetail_opentime) + PrizeDetailJson.getString("openTime"));
   String prizeNum = PrizeDetailJson.getString("winNo");
   PrizeBallLinearLayout prizeBallLinear =
       new PrizeBallLinearLayout(context, ballLinear, Constants.TWENTYBEL, prizeNum);
   prizeBallLinear.initTwentyjBallLinear();
   totalsellmoney.setText(
       context.getString(R.string.prizedetail_thebatchcodeamt)
           + PublicMethod.toIntYuan(PrizeDetailJson.getString("sellTotalAmount"))
           + context.getString(R.string.game_card_yuan));
   prizepoolmoney.setText(
       context.getString(R.string.prizedetail_theprizepoolamt)
           + PublicMethod.toIntYuan(PrizeDetailJson.getString("prizePoolTotalAmount"))
           + context.getString(R.string.game_card_yuan));
   prizenum1.setText(PrizeDetailJson.getString("onePrizeNum"));
   prizenum1.setText(PrizeDetailJson.getString("onePrizeNum"));
   prizenum2.setText(PrizeDetailJson.getString("twoPrizeNum"));
   prizenum3.setText(PrizeDetailJson.getString("threePrizeNum"));
   prizemoney1.setText(PublicMethod.toIntYuan(PrizeDetailJson.getString("onePrizeAmt")));
   prizemoney2.setText(PublicMethod.toIntYuan(PrizeDetailJson.getString("twoPrizeAmt")));
   prizemoney3.setText(PublicMethod.toIntYuan(PrizeDetailJson.getString("threePrizeAmt")));
 }
Ejemplo n.º 3
0
 @Override
 public void initLotonoView(JSONObject PrizeDetailJson) throws JSONException {
   // TODO Auto-generated method stub
   json = PrizeDetailJson;
   prizeBatchCode.setText("排列五    第" + PrizeDetailJson.getString("batchCode") + "期");
   prizeDate.setText(
       context.getString(R.string.prizedetail_opentime) + PrizeDetailJson.getString("openTime"));
   String prizeNum = PrizeDetailJson.getString("winNo");
   PrizeBallLinearLayout prizeBallLinear =
       new PrizeBallLinearLayout(context, ballLinear, Constants.PL5LABEL, prizeNum);
   wincode = prizeBallLinear.initPL5BallLinear();
   totalsellmoney.setText(
       context.getString(R.string.prizedetail_thebatchcodeamt)
           + PublicMethod.toIntYuan(PrizeDetailJson.getString("sellTotalAmount"))
           + context.getString(R.string.game_card_yuan));
   prizenum1.setText(PrizeDetailJson.getString("onePrizeNum"));
   prizemoney1.setText(PublicMethod.toIntYuan(PrizeDetailJson.getString("onePrizeAmt")));
   tobet.setText("排列五投注");
   tobet.setOnClickListener(
       new OnClickListener() {
         @Override
         public void onClick(View v) {
           // TODO Auto-generated method stub
           Intent intent = new Intent(context, PL5.class);
           context.startActivity(intent);
         }
       });
 }
Ejemplo n.º 4
0
 @Override
 public void initLotonoView(JSONObject ssqPrizeDetailJson) throws JSONException {
   // TODO Auto-generated method stub
   json = ssqPrizeDetailJson;
   prizeBatchCode.setText("七星彩    第" + ssqPrizeDetailJson.getString("batchCode") + "期");
   prizeDate.setText(
       context.getString(R.string.prizedetail_opentime)
           + ssqPrizeDetailJson.getString("openTime"));
   String prizeNum = ssqPrizeDetailJson.getString("winNo");
   PrizeBallLinearLayout prizeBallLinear =
       new PrizeBallLinearLayout(context, ballLinear, Constants.QXCLABEL, prizeNum);
   wincode = prizeBallLinear.initQXCBallLinear();
   totalsellmoney.setText(
       context.getString(R.string.prizedetail_thebatchcodeamt)
           + PublicMethod.toIntYuan(ssqPrizeDetailJson.getString("sellTotalAmount"))
           + context.getString(R.string.game_card_yuan));
   prizepoolmoney.setText(
       context.getString(R.string.prizedetail_theprizepoolamt)
           + PublicMethod.toIntYuan(ssqPrizeDetailJson.getString("prizePoolTotalAmount"))
           + context.getString(R.string.game_card_yuan));
   prizenum1.setText(ssqPrizeDetailJson.getString("onePrizeNum"));
   prizenum2.setText(ssqPrizeDetailJson.getString("twoPrizeNum"));
   prizenum3.setText(ssqPrizeDetailJson.getString("threePrizeNum"));
   prizenum4.setText(ssqPrizeDetailJson.getString("fourPrizeNum"));
   prizenum5.setText(ssqPrizeDetailJson.getString("fivePrizeNum"));
   prizenum6.setText(ssqPrizeDetailJson.getString("sixPrizeNum"));
   prizemoney1.setText(PublicMethod.toIntYuan(ssqPrizeDetailJson.getString("onePrizeAmt")));
   prizemoney2.setText(PublicMethod.toIntYuan(ssqPrizeDetailJson.getString("twoPrizeAmt")));
   prizemoney3.setText(PublicMethod.toIntYuan(ssqPrizeDetailJson.getString("threePrizeAmt")));
   prizemoney4.setText(PublicMethod.toIntYuan(ssqPrizeDetailJson.getString("fourPrizeAmt")));
   prizemoney5.setText(PublicMethod.toIntYuan(ssqPrizeDetailJson.getString("fivePrizeAmt")));
   prizemoney6.setText(PublicMethod.toIntYuan(ssqPrizeDetailJson.getString("sixPrizeAmt")));
   tobet.setText("去七星彩投注");
   tobet.setOnClickListener(
       new OnClickListener() {
         @Override
         public void onClick(View v) {
           // TODO Auto-generated method stub
           Intent intent = new Intent(context, QXC.class);
           context.startActivity(intent);
         }
       });
 }
Ejemplo n.º 5
0
  @Override
  public void initLotonoView(JSONObject json) throws JSONException {
    // TODO Auto-generated method stub
    this.json = json;
    prizeBatchCode.setText("大乐透    第" + json.getString("batchCode") + "期");
    prizeDate.setText(
        context.getString(R.string.prizedetail_opentime) + json.getString("openTime"));
    String prizeNum = json.getString("winNo");
    PrizeBallLinearLayout ssqBallLinear =
        new PrizeBallLinearLayout(context, ballLinear, Constants.DLTLABEL, prizeNum);
    wincode = ssqBallLinear.initDltBallLinear();
    totalsellmoney.setText(
        context.getString(R.string.prizedetail_thebatchcodeamt)
            + PublicMethod.toIntYuan(json.getString("sellTotalAmount"))
            + context.getString(R.string.game_card_yuan));
    prizepoolmoney.setText(
        context.getString(R.string.prizedetail_theprizepoolamt)
            + PublicMethod.toIntYuan(json.getString("prizePoolTotalAmount"))
            + context.getString(R.string.game_card_yuan));
    prizenum1.setText(json.getString("onePrizeNum"));
    prizenum2.setText(json.getString("onePrizeZJNum"));
    prizenum3.setText(json.getString("twoPrizeNum"));
    prizenum4.setText(json.getString("twoPrizeZJNum"));
    prizenum5.setText(json.getString("threePrizeNum"));
    prizenum6.setText(json.getString("threePrizeZJNum"));
    prizenum7.setText(json.getString("fourPrizeNum"));
    prizenum8.setText(json.getString("fourPrizeZJNum"));
    prizenum9.setText(json.getString("fivePrizeNum"));
    prizenum10.setText(json.getString("fivePrizeZJNum"));
    prizenum11.setText(json.getString("sixPrizeNum"));
    prizenum12.setText(json.getString("sixPrizeZJNum"));
    prizenum13.setText(json.getString("sevenPrizeNum"));
    prizenum14.setText(json.getString("sevenPrizeZJNum"));
    prizenum15.setText(json.getString("eightPrizeNum"));
    prizenum16.setText(json.getString("twelveSelect2PrizeNum"));

    prizemoney1.setText(PublicMethod.toIntYuan(json.getString("onePrizeAmt")));
    prizemoney2.setText(PublicMethod.toIntYuan(json.getString("onePrizeZJAmt")));
    prizemoney3.setText(PublicMethod.toIntYuan(json.getString("twoPrizeAmt")));
    prizemoney4.setText(PublicMethod.toIntYuan(json.getString("twoPrizeZJAmt")));
    prizemoney5.setText(PublicMethod.toIntYuan(json.getString("threePrizeAmt")));
    prizemoney6.setText(PublicMethod.toIntYuan(json.getString("threePrizeZJAmt")));
    prizemoney7.setText(PublicMethod.toIntYuan(json.getString("fourPrizeAmt")));
    prizemoney8.setText(PublicMethod.toIntYuan(json.getString("fourPrizeZJAmt")));
    prizemoney9.setText(PublicMethod.toIntYuan(json.getString("fivePrizeAmt")));
    prizemoney10.setText(PublicMethod.toIntYuan(json.getString("fivePrizeZJAmt")));
    prizemoney11.setText(PublicMethod.toIntYuan(json.getString("sixPrizeAmt")));
    prizemoney12.setText(PublicMethod.toIntYuan(json.getString("sixPrizeZJAmt")));
    prizemoney13.setText(PublicMethod.toIntYuan(json.getString("sevenPrizeAmt")));
    prizemoney14.setText(PublicMethod.toIntYuan(json.getString("sevenPrizeZJAmt")));
    prizemoney15.setText(PublicMethod.toIntYuan(json.getString("eightPrizeAmt")));
    prizemoney16.setText(PublicMethod.toIntYuan(json.getString("twelveSelect2PrizeAmt")));
    tobet.setText("去大乐透投注");
    tobet.setOnClickListener(
        new OnClickListener() {
          @Override
          public void onClick(View v) {
            // TODO Auto-generated method stub
            Intent intent = new Intent(context, Dlt.class);
            context.startActivity(intent);
          }
        });
  }