// KOTLIN val count = spinner.adapter.count val position = 0 while (position < count) { var item = spinner.getItemAtPosition(position) // Do things with item }