I have an AutoCompleteTextView and it works fine until I add a space to my input. If I had, say, a list of many historical events (the battle for Britain (1940), the battle for the bulge (1944), [insert many battles], the fatal march of Napoleon (1812), [insert many other historical events]).
When I enter β Battle β or β Battle β I get a list of all the battles (although it seems that there is a max), and when I enter β britain β, "Battle of Britain (1940)" appears in the results.
However, when I enter "1940" , the list is empty for the same reason that when I enter "1940" "itain" I do not receive any hits. I assume this is some kind of separator or anchor. If I put 1940 in front of the line (for example, "1940 - Battle of Britain" ) and enter β19β, I get all the results, starting with β19β.
Is it possible to have AutoCompleteTextView autocomplete even if there is a character before the searched word / phrase / part? (So, when I enter β1940β, βthe battle for Britain (1940)β will be among the results?)
source share