android - Disable button click -
android - Disable button click -
i have button text apply.when user performs action button text changed apply.now when text on button applied , wanna disable button click.how can accomplish this.
code
if (data.get (i).get ("status").equals ("null")) { holder.apply.settext ("apply"); } else { holder.apply.settext (data.get (i).get ("status")); } if (holder.apply.gettext ().equals ("applied")) { holder.apply.setfocusable (false); holder.apply.setclickable (false); holder.apply.setfocusableintouchmode (false); }
try disabled button
holder.apply.setenabled(false); android button
Comments
Post a Comment