how to use different values in spinner in android code example
Example: how to set current item for spinner android
val b: List<Int> = a.mapIndexed { i, b -> if (b) i else null }.filterNotNull().toList()
spinnerObject.setSelection(b.get(0))
val b: List<Int> = a.mapIndexed { i, b -> if (b) i else null }.filterNotNull().toList()
spinnerObject.setSelection(b.get(0))