我正在使用Kotlin库来编写我的安卓应用程序。我有一个活动有一个按钮。我在上面设置了单击监听器,我在点击按钮上显示一个toast。import android.os.Bundleimport android.widget.Toastimport kotlinx.android.synthetic.main.activity_main.*
class M
我构建了一个列表视图,我想知道在单击listner时暗示(我使用并修改了这个:https://stackoverflow.com/questions/55128123/kotlin-setonclicklistener-for-a-listview谢谢 //listItems is just the list of Strings
val adapter = ArrayAdapter(this, android.R.layout.simple_list_it