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 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -