@Override
 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
   if (isChecked) {
     Log.i("复选按钮", "选中了[" + buttonView.getText().toString() + "]");
   } else {
     Log.i("复选按钮", "取消了[" + buttonView.getText().toString() + "]");
   }
 }
Exemple #2
0
 @Override
 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
   if (isChecked) {
     tags.add(buttonView.getText().toString());
     checkSubmitOk();
   } else {
     tags.remove(buttonView.getText().toString());
     if (tags.size() == 0) {
       checkSubmitOk();
     }
   }
 }
  @Override
  public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
    if (isChecked) {

      expandFocusResultChange(buttonView.getText().toString());
      Object o = buttonView.getTag();

      if (o instanceof AccountsModel) {
        account = (AccountsModel) buttonView.getTag();
      }
    }
  }
 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
   if (isChecked) {
     Toast.makeText(NavbarActivity.this, buttonView.getText(), Toast.LENGTH_SHORT).show();
   }
 }
Exemple #5
0
 @Override
 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
   if (isChecked) {
     mAnswer = mAnswers.get((String) buttonView.getText());
   }
 }