📅  最后修改于: 2022-03-11 14:52:05.143000             🧑  作者: Mango
// KOTLIN
val count = spinner.adapter.count
val position = 0
while (position < count) {
var item = spinner.getItemAtPosition(position)
// Do things with item
}