AutoCompleteTextView showing suggestions only for the first word entered
Posted
by DixieFlatline
on Stack Overflow
See other posts from Stack Overflow
or by DixieFlatline
Published on 2010-05-09T15:10:07Z
Indexed on
2010/05/09
15:18 UTC
Read the original article
Hit count: 347
Hello!
My autocompletetextview shows suggestions only for the first entered word. So if i write "ki" suggestions for king will popup. But if i enter "queen whitespace ki" there will be no suggestion for king.
textView = (AutoCompleteTextView) findViewById(R.id.predlogi);
String[] pred = getResources().getStringArray(R.array.predlogi);
ArrayAdapter adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_dropdown_item_1line, pred);
textView.setAdapter(adapter);
textView.setThreshold(2);
Is there any property that should be set to textView?
© Stack Overflow or respective owner