Autocomplete in the middle of text field Android
-
30-04-2021 - |
Frage
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?
Lösung
I have used the MultiAutoCompleteTextView for this.It worked.
Andere Tipps
There are 2 workarounds:
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.Dynamically create a new text field for each contact to be added by clicking an
add
button on the same page. Put aremove
button next to each text field.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow