📜  spinner selected item listener android kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:34.824000             🧑  作者: Mango

代码示例1
yourSpinner?.onItemSelectedListener = object : AdapterView.OnItemSelectedListener{
        override fun onNothingSelected(parent: AdapterView<*>?) {

        }

        override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {

        }

    }