How to empty edittext without setText("");

android

Solution

Another option is: `EditText.getText().clear();` But you'll have to cast anyway:

`((EditText) findViewById(R.id.yoursXmlId)).getText().clear();`

Problem

Is there a way to reset the edittext value without setting text like: ``` ((EditText) findViewById(R.id.yoursXmlId)).setText(""); ``` EDIT: Textchanged listner is called when i use setText("").

Original source