Android multiautocomplete textview suggestion with any letter

164 Views Asked by At

I am having a array list with names of fruit (for example). I have Edittext in layout and I want to use Multiautocomplete feature into it. When I use multiautocomplete textview then the suggestions are shown only when the first letters matches the array list.

Eq. When I type "app" then I get suggestion for apple, but I want that even when I type in "le" I get suggestion for apple.

Thankyou

1

There are 1 best solutions below

0
On

Can you post some code as that will help narrow down what your are trying to do. From what I understand you need to check if the search string is a substring of any item in the arraylist.

You can use something like arraylistitem.contains(searchstring) to filter and then populate your search results.