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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -