How do you decide to select recipients or users like Google+ and Gmail?

In my application, I allow users to create groups and then add their friends to them to exchange data. When creating a group, I would like to do something very similar to the picture below from Google+ using Android EditText:

http://gyazo.com/02351cbe2971205f232dab166a9b83be.png

I understand that Google+ and Gmail applications work in this way, separating each user or recipient of an email when a person presses the spacebar while typing. Then they separate them into separate objects, but still appear in the same one EditText. What would be the best way to implement this on Android? I appreciate any help since I am currently completely in the dark on this subject.

+3
source share
1 answer
  • make 9 patches to illustrate groups,

  • expand the view container of your choice in it.

  • do always (invisible borders) edittext get focus.

  • after pressing the spacebar, add the image to your container, on the left side of your edittext, with the text previously entered into edittext. make sure the text string is not null + "" (empty)

This is about how I do it.

0
source

All Articles