简体   繁体   中英

Android: Autocomplete for multiple input

For my app, I'm trying to get the autocomplete suggestion box to pop up for multiple inputs in the textbox.

For example, let's say the input is "Alice, Bob, Charlie". The user begins to type in "Alice" and selects the name from the suggestions, updating the text view with "Alice, ". Then the user types in "Bob" and the suggestion box pops up again, so the user clicks the name and the text view updates to "Alice, Bob, ". And so on.

The default AutoCompleteTextView in Android doesn't seem to support that kind of functionality of having the suggestions box pop up for each input, only for the first input. How do I go about having the suggestion box pop up for each input?

好吧,我想通了,不得不使用MultiAutoCompleteTextView而不是AutoCompleteTextView。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM