Difference between MultiAutoCompleteTextView and AutoCompleteTextView

前端 未结 4 929
情深已故
情深已故 2021-02-01 12:20

Can someone explain the difference between MultiAutoCompleteTextView and AutoCompleteTextView?

4条回答
  •  不知归路
    2021-02-01 12:38

    Difference between AutoCompleteTextView and MultiAutoCompleteTextView

    AutoCompleteTextView Vs MultiAutoCompleteTextView

    AutocompleteTextView only offers suggestions about the whole sentence MultiAutoCompleteTextView offers suggestions for every token in the sentence. You can specify what is the delimiter between tokens.

    AutoCompleteTextView is used for selecting single Item MultiAutoCompleteTextView is used for for selecting multiple Items by using a delimiter(such as comma) in betwwen them.

    the “From:” field in example of email app, you would need to enforce only a single selection by the user from their configured email accounts. If you were writing an email app, and you wanted the “To:” field to be an autocomplete field, getting matches from an address book, chances you want to allow the user to pick multiple recipients for a message, and would make this field a MultiAutoCompleteTextView

提交回复
热议问题