android studio clear text field code example Example: clear edittext android editText.getText().clear();