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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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