I am making an Deck Building app using an AutoCompleteTextView and everything appeared to be fine until one of my users reported it was not working correctly.
The view should auto-complete based on a list of card names provided, but doesn't seem to show all of the relevant options.
For example the following names are in the view
"Flooding at Sweet Apple Acres" "Save Sweet Apple Acres" "Sweet Apple Acres" "Sweet and Kind"
Typing "Sweet" into the view will show all of these values, but typing "Sweet " (with a trailing space) or "Sweet A" will only return the results "Sweet Apple Acres" and "Sweet And Kind" even though all of the other options are valid.
If there is a space in the text field it seems to ignore any auto-complete options that don't start with the given text. Is there any way to change this? I'm using the basic AutoCompleteTextView using default settings.
AutoCompleteTextView autoText = (AutoCompleteTextView) view.findViewById(R.id.card_name);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(mContext, android.R.layout.simple_dropdown_item_1line, CardDatabase.CARD_NAMES);
autoText.setAdapter(adapter);