AutoComplete for Xamarin.Android: Completion modes
RadAutoCompleteTextView has two modes for filtering suggestions.
- StartsWith
- Contains
The completion mode can be changed with the CompletionMode
property of the AutoCompleteTextView's adapter (of type AutoCompleteAdapter
). The default value is CompletionMode.StartsWith
.
this.adapter.CompletionMode = CompletionMode.StartsWith;
StartsWith Mode
In CompletionMode.StartsWith
mode the autocomplete shows only suggestions that start with the typed phrase.
Contains Mode
In CompletionMode.Contains
mode the autocomplete shows only suggestions that contain the typed phrase.
Contains Mode
is not intended to work with the APPEND
and SUGGEST_APPEND
modes. Since both these modes append the rest of the suggestion to the typed text, the combination between these modes won't be helpful, it will be rather confusing.