Exemple #1
0
 private void setSEIdx(RadioGroup gp, int status) {
   if (gp.getId() == mGpSE1.getId()) {
     switch (status) {
       case SE_MODE_STATUS_OFF:
         gp.check(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele1_OFF);
         break;
       case SE_MODE_STATUS_VIRTUAL:
         gp.check(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele1_Virtual);
         break;
       case SE_MODE_STATUS_WIRED:
         gp.check(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele1_Wired);
         break;
       default:
         gp.clearCheck();
         break;
     }
   } else {
     switch (status) {
       case SE_MODE_STATUS_OFF:
         gp.check(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele2_OFF);
         break;
       case SE_MODE_STATUS_VIRTUAL:
         gp.check(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele2_Virtual);
         break;
       case SE_MODE_STATUS_WIRED:
         gp.check(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele2_Wired);
         break;
       default:
         gp.clearCheck();
         break;
     }
   }
 }
Exemple #2
0
  private void setRadioGpEnable(RadioGroup gp) {
    RadioButton gp11 =
        (RadioButton) findViewById(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele1_OFF);
    RadioButton gp12 =
        (RadioButton) findViewById(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele1_Virtual);
    RadioButton gp13 =
        (RadioButton) findViewById(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele1_Wired);
    RadioButton gp21 =
        (RadioButton) findViewById(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele2_OFF);
    RadioButton gp22 =
        (RadioButton) findViewById(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele2_Virtual);
    RadioButton gp23 =
        (RadioButton) findViewById(R.id.NFC_SoftwareStack_Secure_Ele_SetMode_Ele2_Wired);

    if (gp.getId() == mGpSE1.getId()) {
      gp11.setEnabled(true);
      gp12.setEnabled(true);
      gp13.setEnabled(true);
      gp21.setEnabled(false);
      gp22.setEnabled(false);
      gp23.setEnabled(false);
    } else if (gp.getId() == mGpSE2.getId()) {
      gp21.setEnabled(true);
      gp22.setEnabled(true);
      gp23.setEnabled(true);
      gp11.setEnabled(false);
      gp12.setEnabled(false);
      gp13.setEnabled(false);
    }
  }
 /**
  * 重写RadioGroup监听方法onCheckedChanged
  *
  * @param RadioGroup RadioGroup
  * @param int checkedId 当前被选择的RadioId
  */
 public void onCheckedChanged(RadioGroup group, int checkedId) {
   // TODO Auto-generated method stub
   switch (group.getId()) {
     case R.id.buy_join_radiogroup_baodi:
       switch (checkedId) {
         case 0: // 是
           setAllSafeEdit(true);
           break;
         case 1: // 否
           setAllSafeEdit(false);
           break;
       }
     case R.id.buy_join_radiogroup_open:
       switch (checkedId) {
         case 0: // 完全公开
           visible = "0";
           break;
         case 1: // 立即公开
           visible = "3";
           break;
         case 2: // 截止后公开
           visible = "2";
           break;
         case 3: // 跟单者公开
           visible = "4";
           break;
         case 4: // 保密
           visible = "1";
           break;
       }
   }
 }
 /**
  * 重写RadioGroup监听方法onCheckedChanged
  *
  * @param RadioGroup RadioGroup
  * @param int checkedId 当前被选择的RadioId
  */
 public void onCheckedChanged(RadioGroup group, int checkedId) {
   // TODO Auto-generated method stub
   switch (group.getId()) {
     case R.id.buy_zixuan_radiogroup_top:
       switch (checkedId) {
         case 0: // 单式
           isDanFu = true;
           create_ZU3_DAN();
           break;
         case 1: // 复式
           isDanFu = false;
           create_ZU3_FU();
           break;
       }
   }
 }
Exemple #5
0
 /**
  * 重写RadioGroup监听方法onCheckedChanged
  *
  * @param RadioGroup RadioGroup
  * @param int checkedId 当前被选择的RadioId
  */
 public void onCheckedChanged(RadioGroup group, int checkedId) {
   // TODO Auto-generated method stub
   switch (group.getId()) {
     case R.id.buy_zixuan_radiogroup_top:
       switch (checkedId) {
         case 0: // 直选
           isZhiXuan = true;
           createZhiXuan();
           break;
         case 1: // 组3
           isZhiXuan = false;
           createZu3();
           break;
       }
   }
 }
Exemple #6
0
 @Override
 public void onCheckedChanged(RadioGroup group, int checkedId) {
   switch (group.getId()) {
     case R.id.buy_zixuan_radiogroup_top:
       switch (checkedId) {
         case 0: // 组三单式
           iCurrentButton = PublicConst.BUY_PL3_ZU3_DAN;
           create_ZU3_DAN();
           break;
         case 1: // 组三复式
           iCurrentButton = PublicConst.BUY_PL3_ZU3_FU;
           create_ZU3_FU();
           break;
         case 2: // 组三和值
           iCurrentButton = PublicConst.BUY_PL3_HEZHI_ZU3;
           create_PL3_HEZHI_ZU3();
           break;
       }
   }
 }