just use the android:hint attribute in your EditText. This text shows up when the box is empty and not focused, but disappears upon selecting the EditText box. this should be the accepted answer, +1 for simplicity.
Use editText. getText(). clear() . This is the correct way to do this.
It will return true if its empty/null.
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("").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With