Android Question EditText with "delete" cross

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone, i trying to achieve something like this:

FMgd7.png


I need the cross in a edittext, i'm working on the AutocompletePlaces class of Erel:
https://www.b4x.com/android/forum/t...google-place-autocomplete-view.81976/#content

I modified the interefece to look like this:

asdasd-min.jpg


The problem is that the text goes under the cross when it too long:

sdfsd-min.jpg


How can i solve this?
Thanks
 

Star-Dust

Expert
Licensed User
Longtime User
Simply add a button with an X after edittext and get the same result
 
Upvote 0

Mike1970

Well-Known Member
Licensed User
Longtime User
Simply add a button with an X after edittext and get the same result
No, because the lblX (with the MaterialIcon) is IN the edittext

The best thing i would like to do is to add an ellispize to the edittext in order to prevent the text to go under the cross
 
Upvote 0
Top