Here’s the thing:
I have an EditText and a Button. The concept is to have the EditText long so that it covers the Button, but the Button is on top. Let’s picture it this way, [] for EditText width, () for Button width.
[ EditText ( Button )]
The Button is positioned on the right side within the EditText. Is it possible?
Any suggestions? Thanks.
you should create a custom view. Below example , there are a botton right of edittect, when you click it, it clear edittext.
clearable_edit_text.xml
JAVA Code
So now our Customized view ClearableEditText is ready now we can use it wherever we need it.
like