Domanda

I am making an SMS application similar to the android sms. In the "TO" field of the compose sms feature, I want to enter contacts from contact list. I am able to enter for the 1st contact. But for the 2nd contact it does not autocomplete. How to implement this?

È stato utile?

Soluzione

I have used the MultiAutoCompleteTextView for this.It worked.

Altri suggerimenti

There are 2 workarounds:

  1. Make an Add button next to the text field, which pops up a dialog with autocomplete. When return, add the name to the contact field.

  2. Dynamically create a new text field for each contact to be added by clicking an add button on the same page. Put a remove button next to each text field.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top