📅  最后修改于: 2022-03-11 14:52:34.208000             🧑  作者: Mango
代码示例2
val b: List = a.mapIndexed { i, b -> if (b) i else null }.filterNotNull().toList()
spinnerObject.setSelection(b.get(0))