0

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

Ankesh kumar Jaisansaria
  • 1,563
  • 4
  • 26
  • 44
  • 1
    You can refer to my answer at the following link http://stackoverflow.com/questions/32926034/autocompletetextview-not-completing-words-inside-parentheses/32928446#32928446, it's for autocompletetextview, however I think it also works for multiautocompletetextview – BNK Feb 27 '16 at 02:18

1 Answers1

0

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.

Anshul
  • 387
  • 3
  • 15