Closed IstrateAndrei closed 5 years ago
You shouldn't need to manage the filtering or list display yourself. You'll need to provide a filterable ListAdapter
and let the library handle showing the drop down. Can you give me some more details on what you need that the default behavior doesn't handle?
You might be able to resolve this with clearCompletionText
.
There's also some discussion on this for #163.
Thanks man, found the solution in #163
I've added a
TextChangedListener
to my custom view in order to filter a list of objects when i type any text in the input field. After I tap on one item from the filtered list I added to the view usingview.addObject(item)
. After I successfully added an item, theonTokenAdded(token: T)
method is called from within myTokenCompleteTextView.TokenListener
. I want to clear the text from the input field after an item was added but I get an IndexOutOfBoundsExceptionAny idea on how to do that?