Computer scienceMobileAndroidUser InterfaceUI components

Spinners

Minimum numbers

Report a typo

We have an ArrayAdapter assigned to the AutoCompleteTextView.

ArrayAdapter(
    this,
    android.R.layout.simple_dropdown_item_1line,
    listOf("Germany", "Belgium", "France")
).also { adapter ->
    _______________________________
    autoCompleteTextView.setAdapter(adapter)
}

But one line is missing. Write in the answer field the missing line to make this AutoCompleteTextView start suggest only when at least four characters inputted.

Enter a short text
___

Create a free account to access the full topic