コード例 #1
0
  public void setCheckBoxSelected(boolean sel) {
    user.selected = sel;
    chekbox.setChecked(user.selected);
    chekbox.invalidate();

    Log.d(TAG, "setSelected select =" + user.selected);
  }
コード例 #2
0
 public void onClick(View v) {
   user.selected = !user.selected;
   chekbox.setChecked(user.selected);
   Log.d(TAG, "onClick select =" + user.selected);
 }