I want to implement a functionality that an edittext
with clear button if it has more than one character.
I have 10 edittext
in my app, So to implement the above functionality i have to use 10 clear images and 10 onTouchListeners to enable clear image if it has more than one character.
So can you please give me the best solution to implement the above scenario.
And is it possible by creating Custom EditText
?