public void setCheckBoxSelected(boolean sel) { user.selected = sel; chekbox.setChecked(user.selected); chekbox.invalidate(); Log.d(TAG, "setSelected select =" + user.selected); }
/** * Checked property setter method. * * @param value {@code true} indicates checked, {@code false} unchecked */ public void Checked(boolean value) { if (resourceId != -1) { ((android.widget.CheckBox) container.$context().findViewById(resourceId)).setChecked(value); ((android.widget.CheckBox) container.$context().findViewById(resourceId)).invalidate(); } else { view.setChecked(value); view.invalidate(); } }