Question

I have set adapter to the MultiAutoCompleteTextView in my android application.

ArrayAdapter<String> adapter = new ArrayAdapter<String>(SearchSuburb.this, android.R.layout.simple_dropdown_item_1line, sub);
searchtext.setAdapter(adapter);

static final String[] sub = new String[] { "Melbourne VIC 3000", "East Melbourne VIC 3002", "West Melbourne VIC 3003", "St Kilda Road Central VIC 3004", "World Trade Centre VIC 3005",
        "South Wharf VIC 3006", "Southbank VIC 3006"};

Its working fine until I come across a space while typing.

When I typed VIC it gives predictive results but when I press space it vanish. How to fix this problem ?

Thanks in advance !

Was it helpful?

Solution

I had the same problem and found this

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top