android - How to empty edittext without setText(""); -
is there way reset edittext value without setting text like:
((edittext) findviewbyid(r.id.yoursxmlid)).settext("");
edit:
textchanged listner called when use settext("").
another option is: edittext.gettext().clear();
you'll have cast anyway:
((edittext) findviewbyid(r.id.yoursxmlid)).gettext().clear();
Comments
Post a Comment