views:

116

answers:

0

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?