how to set current item for spinner android

Solutions on MaxInterview for how to set current item for spinner android by the best coders in the world

showing results for - "how to set current item for spinner android"
Andres
15 Apr 2020
1val b: List<Int> = a.mapIndexed { i, b -> if (b) i else null }.filterNotNull().toList()
2
3spinnerObject.setSelection(b.get(0))
4