Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #current #item #spinner #android
ADD COMMENT
Topic
Name
2+9 =