klinker41 / android-chips

Chips in your AutoCompleteTextView on Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can i set multiple contacts in Chip Edittext?

umangce opened this issue · comments

I want to implement application which provides option to user to select contacts. Once user close that application and restart it then that contacts should be appear in Chip Edittext.
I used "submitItem" method but it is not working at all.
So Is there a way to set multiple Contacts ?

There is not a way to currently do this in the library. Please feel free to add it and send a pull request!

Okay. I will try. Thanks for your reply.
On May 9, 2015 6:20 AM, "Jacob Klinker" notifications@github.com wrote:

There is not a way to currently do this in the library. Please feel free
to add it and send a pull request!


Reply to this email directly or view it on GitHub
#9 (comment)
.

Adding this method to the RecipientEditTextView class is sufficient:

     public void addRecipient(RecipientEntry entry) {
         append(entry.getDisplayName());
         submitItem(entry);
     }