Пример #1
0
 @Override
 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
   if (isChecked) {
     Log.i("复选按钮", "选中了[" + buttonView.getText().toString() + "]");
   } else {
     Log.i("复选按钮", "取消了[" + buttonView.getText().toString() + "]");
   }
 }
Пример #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();
     }
   }
 }
Пример #3
0
  @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();
      }
    }
  }
Пример #4
0
 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
   if (isChecked) {
     Toast.makeText(NavbarActivity.this, buttonView.getText(), Toast.LENGTH_SHORT).show();
   }
 }
Пример #5
0
 @Override
 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
   if (isChecked) {
     mAnswer = mAnswers.get((String) buttonView.getText());
   }
 }