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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -