I don't know why your current one isn't working, b...
# anko
j
I don't know why your current one isn't working, but this being Anko, you can use:
Copy code
spinner(){
    onItemSelectedListener {
        onItemSelected { adapterView, view, index, id ->
            //selection code here
        }
    }
}