Because some reason I need a Edittext like the red part in this image :
Whenever the user press delete button on keyboard, the edittext will delete one token instead of one word. So, my question are : Do we have an exist control like it? or If not, do you know how can customize one. Note : I don't need it the same 100%. Right now, I am thinking about using a TextWatcher or setKeyListener method for delete feature.
Thank you so much for any help. And sorry because my English is not really well.
The Android AOSP email client has something like you seem trying to do. It is open source.
From this commit you see, that Google calls "chip" what you call "badge".
You should find all information regarding what it takes to implement such chips from the commit above, which I guess, was the first time Google introduced such chips (at least to mail), or in the whole source of the AOSP email client:
I've put together TokenAutoComplete on github for our use at Splitwise. I couldn't find anything like this in the Android SDK, so I made my own.
The only place where the behavior of my control will not match your expectations is that when you delete the most-recently completed token, it turns into the word again. All other tokens get completely deleted.
Here's a basic example:
Layout code for contact_token (you can use any kind of layout here or could throw an ImageView in if you want images in the token)
Token backgound drawable
Person object code
Sample activity
Layout code