xml - clickable and unclickable button android Studio -
i making small application , want do: every time click on "+" button, want increment counter have done. every time click "-" button, want decrement counter again, have done. however, when value of counter reaches 0, want button "-" no longer clickable , greyed out, how able this?
what can in oncreate method
button fewer=(button)findviewbyid(r.id.fewer);
and can use .setclickable(false);
Comments
Post a Comment