How to uncheck the CheckBox, when limit exceeds in android? -


hello new android, requirement allow user check maximum 3 number of checkboxes. when user trying check fourth 1 should populate dailogue. iam trying problem fourth 1 not unchecking...

can 1 me...

regards shiva.m

just uncheck checkbox using following code block:

     final checkbox checkbox = (checkbox) findviewbyid(r.id.checkbox_id);      if (checkbox.ischecked()) {          checkbox.setchecked(false);      } 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -