我正在尝试创建一个方法,在ListView中单击记录后启动新活动。你能说明怎么做吗?
答案 0 :(得分:1)
lv.setClickable(true)
lv.setOnItemClickListener(object : AdapterView.OnItemClickListener {
override fun onItemClick(p0: AdapterView<*>?, p1: View?, p2: Int, p3: Long) {
//start activity here
}
})