/**
   * <b>初始化七乐彩中奖小球
   *
   * @param linear
   * @param Lotname
   * @param Batchcode
   */
  public String initQLCBallLinear() {
    // zlm 7.28 代码修改:添加号码排序
    StringBuffer str = new StringBuffer(); // 用于分享显示开奖号码
    int i1, i2, i3;
    String iShowNumber;
    OneBallView tempBallView;

    int[] ssqInt01 = new int[7];
    int[] ssqInt02 = new int[7];
    String[] ssqStr = new String[7];

    for (i2 = 0; i2 < 7; i2++) {
      iShowNumber = Batchcode.substring(i2 * 2, i2 * 2 + 2);
      ssqInt01[i2] = Integer.valueOf(iShowNumber);
    }

    ssqInt02 = PublicMethod.sort(ssqInt01);

    for (i3 = 0; i3 < 7; i3++) {
      if (ssqInt02[i3] < 10) {
        ssqStr[i3] = "0" + ssqInt02[i3];
      } else {
        ssqStr[i3] = "" + ssqInt02[i3];
      }
    }
    for (i1 = 0; i1 < 7; i1++) {

      tempBallView = new OneBallView(context, 1);
      tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, ssqStr[i1], aRedColorResId);

      linear.addView(tempBallView);
      str.append(ssqStr[i1]);
      str.append(",");
    }
    // zlm 8.3 代码修改 :添加七乐彩蓝球
    str.substring(0, str.length() - 1);
    iShowNumber = Batchcode.substring(14, 16);
    tempBallView = new OneBallView(context, 1);
    tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, iShowNumber, aBlueColorResId);

    linear.addView(tempBallView);
    str.append(iShowNumber);
    return str.toString();
  }
예제 #2
0
  public int[] parseStr(String iNumbers, boolean isRed) {
    if (iGameType.equalsIgnoreCase("gd11-5")) {
      // TODO
      int[] allNums = new int[5];
      for (int i = 0; i < 5; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i * 2, i * 2 + 2));
      }
      return allNums;
    }
    if (iGameType.equalsIgnoreCase("gd-10")) {
      // TODO
      int[] allNums = new int[8];
      int[] redNums = new int[2];
      int index = 0;
      for (int i = 0; i < 8; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i * 2, i * 2 + 2));
        if (allNums[i] == 19 || allNums[i] == 20) {
          redNums[index] = allNums[i];
          index++;
        }
      }
      if (isRed) {
        return redNums;
      } else {
        return allNums;
      }
    }
    if (iGameType.equalsIgnoreCase("ssq")) {
      // zlm 7.28 代码修改:添加号码排序
      int i2;
      String iShowNumber;
      int[] ssqInt01 = new int[6];
      int[] ssqInt02 = new int[1];
      for (i2 = 0; i2 < 6; i2++) {
        iShowNumber = iNumbers.substring(i2 * 2, i2 * 2 + 2);
        ssqInt01[i2] = Integer.valueOf(iShowNumber);
      }

      ssqInt01 = PublicMethod.sort(ssqInt01);
      if (isRed) {
        return ssqInt01;
      } else {
        iShowNumber = iNumbers.substring(12, 14);
        ssqInt02[0] = Integer.valueOf(iShowNumber);
        return ssqInt02;
      }

    } else if (iGameType.equalsIgnoreCase("fc3d")) {
      isTen = false;
      // zlm 7.30 代码修改:修改福彩3D号码
      int[] allNums = new int[3];
      for (int i = 0; i < 3; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i * 2, i * 2 + 2));
      }
      return allNums;
    } else if (iGameType.equalsIgnoreCase("qlc")) {
      // zlm 7.28 代码修改:添加号码排序
      int i1, i2, i3;
      String iShowNumber;

      int[] ssqInt01 = new int[7];
      int[] ssqInt02 = new int[1];

      for (i2 = 0; i2 < 7; i2++) {
        iShowNumber = iNumbers.substring(i2 * 2, i2 * 2 + 2);
        ssqInt01[i2] = Integer.valueOf(iShowNumber);
      }

      ssqInt01 = PublicMethod.sort(ssqInt01);
      // zlm 8.3 代码修改 :添加七乐彩蓝球
      if (isRed) {
        return ssqInt01;
      } else {
        iShowNumber = iNumbers.substring(14, 16);
        ssqInt02[0] = Integer.valueOf(iShowNumber);
        return ssqInt02;
      }

    } else if (iGameType.equalsIgnoreCase("pl3")) {
      isTen = false;
      int[] allNums = new int[3];
      for (int i = 0; i < 3; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i, i + 1));
      }
      return allNums;
    } else if (iGameType.equalsIgnoreCase("pl5")) {
      isTen = false;
      int[] allNums = new int[5];
      for (int i = 0; i < 5; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i, i + 1));
      }
      return allNums;
    } else if (iGameType.equalsIgnoreCase("qxc")) {
      isTen = false;
      int[] allNums = new int[7];
      for (int i = 0; i < 7; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i, i + 1));
      }
      return allNums;
    } else if (iGameType.equalsIgnoreCase("cjdlt")) {

      int i1, i2;
      String iShowNumber;
      int[] cjdltInt01 = new int[5];
      int[] cjdltInt02 = new int[2];

      for (i2 = 0; i2 < 5; i2++) {
        iShowNumber = iNumbers.substring(i2 * 3, i2 * 3 + 2);
        cjdltInt01[i2] = Integer.valueOf(iShowNumber);
      }

      cjdltInt01 = PublicMethod.sort(cjdltInt01);
      for (i2 = 0; i2 < 2; i2++) {
        iShowNumber = iNumbers.substring(i2 * 3 + 15, i2 * 3 + 17);
        cjdltInt02[i2] = Integer.valueOf(iShowNumber);
      }
      cjdltInt02 = PublicMethod.sort(cjdltInt02);
      if (isRed) {
        return cjdltInt01;
      } else {
        return cjdltInt02;
      }

    } else if (iGameType.equalsIgnoreCase("ssc")) {
      isTen = false;
      int[] allNums = new int[5];
      for (int i = 0; i < 5; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i, i + 1));
      }
      return allNums;
    } else if (iGameType.equalsIgnoreCase("11-5") || iGameType.equalsIgnoreCase("11-ydj")) {

      int[] allNums = new int[5];
      for (int i = 0; i < 5; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i * 2, i * 2 + 2));
      }
      return allNums;
    } else if (iGameType.equalsIgnoreCase("22-5")) {

      int[] allNums = new int[5];
      for (int i = 0; i < 5; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i * 2, i * 2 + 2));
      }
      return allNums;
    } else if (iGameType.equalsIgnoreCase("sfc")) {

      int[] allNums = new int[14];
      for (int i = 0; i < 14; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i, i + 1));
      }
      return allNums;
    } else if (iGameType.equalsIgnoreCase("rxj")) {
      int[] allNums = new int[14];
      for (int i = 0; i < 14; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i, i + 1));
      }
      return allNums;
    } else if (iGameType.equalsIgnoreCase("lcb")) {
      int[] allNums = new int[12];
      for (int i = 0; i < 12; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i, i + 1));
      }
      return allNums;
    } else if (iGameType.equalsIgnoreCase("jqc")) {
      int[] allNums = new int[8];
      for (int i = 0; i < 8; i++) {
        allNums[i] = Integer.valueOf(iNumbers.substring(i, i + 1));
      }
      return allNums;
    }
    return null;
  }
  /**
   * <b>初始化大乐透中奖小球
   *
   * @param linear
   * @param Lotname
   * @param Batchcode
   */
  public String initDltBallLinear() {
    StringBuffer str = new StringBuffer(); // 用于分享显示开奖号码
    int i1, i2, i3;
    String iShowNumber;
    OneBallView tempBallView;
    int[] cjdltInt01 = new int[5];
    int[] cjdltInt02 = new int[5];
    int[] cjdltInt03 = new int[2];
    int[] cjdltInt04 = new int[2];
    String[] cjdltStr = new String[5];
    String[] cjdltStr1 = new String[2];

    for (i2 = 0; i2 < 5; i2++) {
      iShowNumber = Batchcode.substring(i2 * 3, i2 * 3 + 2);
      cjdltInt01[i2] = Integer.valueOf(iShowNumber);
    }

    cjdltInt02 = PublicMethod.sort(cjdltInt01);

    for (i3 = 0; i3 < 5; i3++) {
      if (cjdltInt02[i3] < 10) {
        cjdltStr[i3] = "0" + cjdltInt02[i3];
      } else {
        cjdltStr[i3] = "" + cjdltInt02[i3];
      }
    }
    for (i1 = 0; i1 < 5; i1++) {

      tempBallView = new OneBallView(context, 1);
      tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, cjdltStr[i1], aRedColorResId);
      str.append(cjdltStr[i1]);
      str.append(",");
      linear.addView(tempBallView);
    }

    try {
      for (i2 = 0; i2 < 2; i2++) {
        iShowNumber = Batchcode.substring(i2 * 3 + 15, i2 * 3 + 17);
        cjdltInt03[i2] = Integer.valueOf(iShowNumber);
      }
    } catch (NumberFormatException e) {
      e.printStackTrace();
    }

    cjdltInt04 = PublicMethod.sort(cjdltInt03);

    for (i3 = 0; i3 < 2; i3++) {
      if (cjdltInt04[i3] < 10) {
        cjdltStr1[i3] = "0" + cjdltInt04[i3];
      } else {
        cjdltStr1[i3] = "" + cjdltInt04[i3];
      }
    }
    str.substring(0, str.length() - 1);
    str.append("|");
    for (i1 = 0; i1 < 2; i1++) {
      tempBallView = new OneBallView(context, 1);
      tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, cjdltStr1[i1], aBlueColorResId);
      str.append(cjdltStr1[i1]);
      str.append(",");
      linear.addView(tempBallView);
    }
    str.substring(0, str.length() - 1);
    return str.toString();
  }
예제 #4
0
    // 设置主列表布局中的详细内容
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
      RWSharedPreferences shellRW =
          new RWSharedPreferences(NoticeMainActivity.this, ShellRWConstants.CAIZHONGSETTING);
      String iGameType = (String) mList.get(position).get(mIndex[0]);

      String Codetry = "";
      if (iGameType.equals("fc3d")) {
        Codetry = (String) mList.get(position).get("tryCode");
      }
      String iNumbers = (String) mList.get(position).get(mIndex[1]);
      String iDate = (String) mList.get(position).get(mIndex[2]);
      final String iIssue = (String) mList.get(position).get(mIndex[3]);
      String iIssueNo = "第" + iIssue + "期";
      ViewHolder holder = null;

      convertView = mInflater.inflate(R.layout.notice_prizes_main_layout, null);

      holder = new ViewHolder();
      holder.icon = (ImageView) convertView.findViewById(R.id.icon);
      holder.name = (TextView) convertView.findViewById(R.id.notice_prizes_main_title);
      holder.numbers = (LinearLayout) convertView.findViewById(R.id.ball_linearlayout);
      holder.date = (TextView) convertView.findViewById(R.id.notice_prizes_dateAndTimeId);
      holder.issue = (TextView) convertView.findViewById(R.id.notice_prizes_issueId);
      holder.lookBtn = (Button) convertView.findViewById(R.id.notice_prizes_main_btn_jc);
      holder.rLayout = (RelativeLayout) convertView.findViewById(R.id.notice_prizes_relative);
      holder.numbers.removeAllViews();
      convertView.setTag(holder);
      holder.name.setText(getName(iGameType));
      holder.icon.setImageResource(getIcon(iGameType));
      if (iGameType.equals("ssq")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);

        // zlm 7.28 代码修改:添加号码排序
        int i1, i2, i3;
        String iShowNumber;
        OneBallView tempBallView;
        int[] ssqInt01 = new int[6];
        int[] ssqInt02 = new int[6];
        String[] ssqStr = new String[6];

        for (i2 = 0; i2 < 6; i2++) {
          iShowNumber = iNumbers.substring(i2 * 2, i2 * 2 + 2);
          ssqInt01[i2] = Integer.valueOf(iShowNumber);
        }

        ssqInt02 = PublicMethod.sort(ssqInt01);

        for (i3 = 0; i3 < 6; i3++) {
          if (ssqInt02[i3] < 10) {
            ssqStr[i3] = "0" + ssqInt02[i3];
          } else {
            ssqStr[i3] = "" + ssqInt02[i3];
          }
        }
        for (i1 = 0; i1 < 6; i1++) {
          // iShowNumber = iNumbers.substring(i1 * 2, i1 * 2 + 2);
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, ssqStr[i1], aRedColorResId);
          tempBallView.setScaleType(ScaleType.CENTER_INSIDE);
          holder.numbers.addView(tempBallView);
        }

        iShowNumber = iNumbers.substring(12, 14);
        tempBallView = new OneBallView(convertView.getContext(), 1);
        tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, iShowNumber, aBlueColorResId);

        holder.numbers.addView(tempBallView);
      } else if (iGameType.equals("fc3d")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        int i1;
        // zlm 7.30 代码修改:修改福彩3D号码
        int iShowNumber;
        OneBallView tempBallView;
        for (i1 = 0; i1 < 3; i1++) {
          iShowNumber = Integer.valueOf(iNumbers.substring(i1 * 2, i1 * 2 + 2));
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, "" + iShowNumber, aRedColorResId);
          holder.numbers.addView(tempBallView);
        }
        TextView trycode = new TextView(NoticeMainActivity.this);
        trycode.setTextColor(Color.BLUE);
        trycode.setTextSize(17);
        trycode.setPadding(10, 10, 0, 0);
        String codeshow = "";
        for (i1 = 0; i1 < 3; i1++) {
          codeshow += Codetry.substring(i1 * 2 + 1, i1 * 2 + 2);
          if (i1 != 2) {
            codeshow += ",";
          }
        }
        trycode.setText("试机号:" + codeshow);
        holder.numbers.addView(trycode);
      } else if (iGameType.equals("qlc")) {
        int deletW = 4;
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        // zlm 7.28 代码修改:添加号码排序
        int i1, i2, i3;
        String iShowNumber;
        OneBallView tempBallView;

        int[] ssqInt01 = new int[7];
        int[] ssqInt02 = new int[7];
        String[] ssqStr = new String[7];

        for (i2 = 0; i2 < 7; i2++) {
          iShowNumber = iNumbers.substring(i2 * 2, i2 * 2 + 2);
          ssqInt01[i2] = Integer.valueOf(iShowNumber);
        }

        ssqInt02 = PublicMethod.sort(ssqInt01);

        for (i3 = 0; i3 < 7; i3++) {
          if (ssqInt02[i3] < 10) {
            ssqStr[i3] = "0" + ssqInt02[i3];
          } else {
            ssqStr[i3] = "" + ssqInt02[i3];
          }
        }
        for (i1 = 0; i1 < 7; i1++) {

          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(
              BALL_WIDTH - deletW, BALL_WIDTH - deletW, ssqStr[i1], aRedColorResId);
          holder.numbers.addView(tempBallView);
        }
        // zlm 8.3 代码修改 :添加七乐彩蓝球
        iShowNumber = iNumbers.substring(14, 16);
        tempBallView = new OneBallView(convertView.getContext(), 1);
        tempBallView.initBall(
            BALL_WIDTH - deletW, BALL_WIDTH - deletW, iShowNumber, aBlueColorResId);

        holder.numbers.addView(tempBallView);
      } else if (iGameType.equals("cjdlt")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        // zlm 7.28 代码修改:添加号码排序
        int i1, i2, i3;
        String iShowNumber = "";
        OneBallView tempBallView;
        int[] cjdltInt01 = new int[5];
        int[] cjdltInt02 = new int[5];
        int[] cjdltInt03 = new int[2];
        int[] cjdltInt04 = new int[2];
        String[] cjdltStr = new String[5];
        String[] cjdltStr1 = new String[2];

        for (i2 = 0; i2 < 5; i2++) {
          iShowNumber = iNumbers.substring(i2 * 3, i2 * 3 + 2);
          cjdltInt01[i2] = Integer.valueOf(iShowNumber);
        }

        cjdltInt02 = PublicMethod.sort(cjdltInt01);

        for (i3 = 0; i3 < 5; i3++) {
          if (cjdltInt02[i3] < 10) {
            cjdltStr[i3] = "0" + cjdltInt02[i3];
          } else {
            cjdltStr[i3] = "" + cjdltInt02[i3];
          }
        }
        for (i1 = 0; i1 < 5; i1++) {

          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, cjdltStr[i1], aRedColorResId);
          holder.numbers.addView(tempBallView);
        }

        for (i2 = 0; i2 < 2; i2++) {
          try {
            iShowNumber = iNumbers.substring(i2 * 3 + 15, i2 * 3 + 17);
          } catch (Exception e) {
            e.printStackTrace();
          }
          cjdltInt03[i2] = Integer.valueOf(iShowNumber);
        }

        cjdltInt04 = PublicMethod.sort(cjdltInt03);

        for (i3 = 0; i3 < 2; i3++) {
          if (cjdltInt04[i3] < 10) {
            cjdltStr1[i3] = "0" + cjdltInt04[i3];
          } else {
            cjdltStr1[i3] = "" + cjdltInt04[i3];
          }
        }

        for (i1 = 0; i1 < 2; i1++) {
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, cjdltStr1[i1], aBlueColorResId);

          holder.numbers.addView(tempBallView);
        }
      } else if (iGameType.equals("pl3")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        int i1;
        int iShowNumber;
        OneBallView tempBallView;
        for (i1 = 0; i1 < 3; i1++) {
          iShowNumber = Integer.valueOf(iNumbers.substring(i1, i1 + 1));
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, "" + iShowNumber, aRedColorResId);
          holder.numbers.addView(tempBallView);
        }
      } else if (iGameType.equals("pl5")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        int i1;
        int iShowNumber;
        OneBallView tempBallView;
        for (i1 = 0; i1 < 5; i1++) {
          iShowNumber = Integer.valueOf(iNumbers.substring(i1, i1 + 1));
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, "" + iShowNumber, aRedColorResId);
          holder.numbers.addView(tempBallView);
        }
      } else if (iGameType.equals("qxc")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        int i1;
        int iShowNumber;
        OneBallView tempBallView;
        for (i1 = 0; i1 < 7; i1++) {
          iShowNumber = Integer.valueOf(iNumbers.substring(i1, i1 + 1));
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, "" + iShowNumber, aRedColorResId);
          holder.numbers.addView(tempBallView);
        }
      } else if (iGameType.equals("ssc")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        int i1;
        int iShowNumber;
        OneBallView tempBallView;
        for (i1 = 0; i1 < 5; i1++) {
          iShowNumber = Integer.valueOf(iNumbers.substring(i1, i1 + 1));
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, "" + iShowNumber, aRedColorResId);
          holder.numbers.addView(tempBallView);
        }
      } else if (iGameType.equals("11-5")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        int i1;
        int iShowNumber;
        OneBallView tempBallView;
        for (i1 = 0; i1 < 5; i1++) {
          iShowNumber = Integer.valueOf(iNumbers.substring(i1 * 2, i1 * 2 + 2));
          String isNum = PublicMethod.getZhuMa(iShowNumber);
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, isNum, aRedColorResId);
          holder.numbers.addView(tempBallView);
        }
      } else if (iGameType.equals("11-ydj")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        int i1;
        int iShowNumber;
        OneBallView tempBallView;
        for (i1 = 0; i1 < 5; i1++) {
          iShowNumber = Integer.valueOf(iNumbers.substring(i1 * 2, i1 * 2 + 2));
          String isNum = PublicMethod.getZhuMa(iShowNumber);
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, isNum, aRedColorResId);
          holder.numbers.addView(tempBallView);
        }
      } else if (iGameType.equals("22-5")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        int i1;
        int iShowNumber;
        OneBallView tempBallView;
        for (i1 = 0; i1 < 5; i1++) {
          iShowNumber = Integer.valueOf(iNumbers.substring(i1 * 2, i1 * 2 + 2));
          String isNum = PublicMethod.getZhuMa(iShowNumber);
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, isNum, aRedColorResId);
          holder.numbers.addView(tempBallView);
        }
      } else if (iGameType.equals("sfc")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);

        TextView tvFootball = new TextView(convertView.getContext());
        //				tvFootball.setTextColor( R.color.darkgreen);
        tvFootball.setTextSize(25);
        tvFootball.setGravity(Gravity.RIGHT);
        tvFootball.setText(iNumbers);
        holder.numbers.addView(tvFootball);
      } else if (iGameType.equals("rxj")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        TextView tvFootball = new TextView(convertView.getContext());
        //				tvFootball.setTextColor( R.color.darkgreen);
        tvFootball.setTextSize(25);
        tvFootball.setGravity(Gravity.RIGHT);
        tvFootball.setText(iNumbers);
        holder.numbers.addView(tvFootball);
      } else if (iGameType.equals("lcb")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        TextView tvFootball = new TextView(convertView.getContext());
        tvFootball.setGravity(Gravity.RIGHT);
        //				tvFootball.setTextColor( R.color.darkgreen);
        tvFootball.setTextSize(25);
        tvFootball.setText(iNumbers);
        holder.numbers.addView(tvFootball);
      } else if (iGameType.equals("jqc")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        TextView tvFootball = new TextView(convertView.getContext());
        //				tvFootball.setTextColor( R.color.darkgreen);
        tvFootball.setTextSize(25);
        tvFootball.setGravity(Gravity.RIGHT);
        tvFootball.setText(iNumbers);
        holder.numbers.addView(tvFootball);
      } else if (iGameType.equals("gd-11-5")) {
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        int i1;
        int iShowNumber;
        OneBallView tempBallView;
        for (i1 = 0; i1 < 5; i1++) {
          iShowNumber = Integer.valueOf(iNumbers.substring(i1 * 2, i1 * 2 + 2));
          String isNum = PublicMethod.getZhuMa(iShowNumber);
          tempBallView = new OneBallView(convertView.getContext(), 1);
          tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, isNum, aRedColorResId);
          holder.numbers.addView(tempBallView);
        }

      } else if (iGameType.equals("gd-10")) {
        int deletW = 4;
        holder.name.setTextSize(PublicMethod.getPxInt(7, context));
        holder.date.setText(iDate);
        holder.date.setVisibility(TextView.VISIBLE);
        holder.issue.setText(iIssueNo);
        holder.issue.setVisibility(TextView.VISIBLE);
        int i1;
        int iShowNumber;
        OneBallView tempBallView;
        for (i1 = 0; i1 < 8; i1++) {
          iShowNumber = Integer.valueOf(iNumbers.substring(i1 * 2, i1 * 2 + 2));
          if (iShowNumber == 19 || iShowNumber == 20) {
            tempBallView = new OneBallView(convertView.getContext(), 1);
            tempBallView.initBall(BALL_WIDTH, BALL_WIDTH, "" + iShowNumber, aRedColorResId);
            holder.numbers.addView(tempBallView);
          } else {
            tempBallView = new OneBallView(convertView.getContext(), 1);
            tempBallView.initBall(
                BALL_WIDTH - deletW, BALL_WIDTH - deletW, "" + iShowNumber, aBlueColorResId);
            holder.numbers.addView(tempBallView);
          }
        }

      } else if (iGameType.equals("jcz")) {
        holder.rLayout.setVisibility(RelativeLayout.GONE);
        holder.lookBtn.setVisibility(Button.VISIBLE);
        holder.lookBtn.setBackgroundResource(R.drawable.join_info_btn_selecter);
        holder.lookBtn.setOnClickListener(
            new OnClickListener() {
              @Override
              public void onClick(View v) {
                isnoticefresh = false;
                // TODO Auto-generated method stub
                Intent intent = new Intent(context, NoticeJcActivity.class);

                context.startActivity(intent);
              }
            });
      } else if (iGameType.equals("jcl")) {
        holder.rLayout.setVisibility(RelativeLayout.GONE);
        holder.lookBtn.setVisibility(Button.VISIBLE);
        holder.lookBtn.setBackgroundResource(R.drawable.join_info_btn_selecter);
        holder.lookBtn.setOnClickListener(
            new OnClickListener() {
              public void onClick(View v) {
                // TODO Auto-generated method stub
                isnoticefresh = false;
                Intent intent = new Intent(context, NoticeJclActivity.class);
                context.startActivity(intent);
              }
            });
      }
      //			convertView.setOnClickListener(new OnClickListener() {
      //
      //				@Override
      //				public void onClick(View v) {
      //					// TODO Auto-generated method stub
      //					NoticeActivityGroup.ISSUE = iIssue;
      //				}
      //			});
      return convertView;
    }