📜  onlongclicklistener android kotlin 代码示例

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

代码示例1
view.setOnLongClickListener{
     Toast.makeText(this, "Long click detected", Toast.LENGTH_SHORT).show()
     return@setOnLongClickListener true
}