3

In my app, I'm allowing users to create groups and then add their friends to them in order to share data. When creating the group, I would like to be able to do something very similar to the picture below from Google+, using an Android EditText:


(source: gyazo.com)

I realise that the Google+ and Gmail applications of this both work by separating each user or email recipient when the person presses space during typing. This then separates them into separate entities however still displayed in the same EditText. What would be the best way to implement this in Android? I appreciate any assistance as currently I'm completely in the dark on this topic.

Community
  • 1
  • 1
edwoollard
  • 12,245
  • 6
  • 43
  • 74

1 Answers1

0
  1. make 9patches to illustrate groups,

  2. extend a viewcontainer of your choice, in it.

  3. make always an (invisible borders) edittext get focus.

  4. after pressing space, add a image to your container, to the left side of your edittext, with the text previous inputted in the edittext. make sure to text string for not being null+"" (empty)

That's about how I'd do it.

Anders Metnik
  • 6,096
  • 7
  • 40
  • 79