@Override
  public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
    if (!buttonView.isPressed()) {
      return;
    }
    if (!isChecked) {
      // If it got unchecked, we don't care.
      return;
    }

    for (RadioButton button : this.buttons) {
      if (button.isChecked() && !(buttonView == button)) {
        button.setChecked(false);
      }
    }
    Collect.getInstance()
        .getActivityLogger()
        .logInstanceAction(
            this,
            "onCheckedChanged",
            mItems.get((Integer) buttonView.getTag()).getValue(),
            mPrompt.getIndex());

    listener.advance();
  }
 @Override
 public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
   // TODO Auto-generated method stub
   if (buttonView.isPressed()) {
     switch (buttonView.getId()) {
       case R.id.setup_send_checkbox:
         if (isChecked) {
           etUsername.setVisibility(EditText.GONE);
           etPassword.setVisibility(EditText.GONE);
         } else {
           etUsername.setVisibility(EditText.VISIBLE);
           etPassword.setVisibility(EditText.VISIBLE);
         }
         RegisterAccount.rgstAct.sedisLogin = isChecked ? D.SED_LOGIN_TRUE : D.SED_LOGIN_FALSE;
         break;
     }
   }
 }
Example #3
0
  @Override
  public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
    // TODO Auto-generated method stub

    if (buttonView.isPressed()) {
      //			int _id = (Integer) buttonView.getTag(R.string.tag_msg_onlymarkder);
      //			if (isChecked) {
      //				if (!_IDList.contains(_id)) {
      //					_IDList.add(_id);
      //					if (menuMarkLayout.getVisibility() != LinearLayout.VISIBLE) {
      //						menuMarkLayout.setVisibility(LinearLayout.VISIBLE);
      //					}
      //				}
      //			} else {
      //				if (_IDList.contains(_id)) {
      //					_IDList.remove(Integer.valueOf(_id));
      //				}
      //			}
      //
      //			if (_IDList == null || _IDList.size() <= 0) {
      //				menuMarkLayout.setVisibility(LinearLayout.INVISIBLE);
      //			}
      TagContactItem tcItem =
          (TagContactItem) ((ViewGroup) buttonView.getParent()).getTag(R.string.tag_contact_item);

      if (isChecked) {
        //				if (menuMarkLayout.getVisibility() != LinearLayout.VISIBLE) {
        //					menuMarkLayout.setVisibility(LinearLayout.VISIBLE);
        //				}
        //				Long _id = (Long) buttonView.getTag(R.string.tag_item_onlymarker);
        onlyMarkerList.add(Long.valueOf(tcItem._id));
      } else {
        //				Long _id = (Long) buttonView.getTag(R.string.tag_item_onlymarker);
        onlyMarkerList.remove(Long.valueOf(tcItem._id));
      }
      homeGp.contactCheckMarkVisible();

      //			if (_IDList.size() <= 0) {
      //				menuMarkLayout.setVisibility(LinearLayout.INVISIBLE);
      //			}
    }
  }