Answers for "how to set onlongclicklistener in kotlin"

0

onlongclicklistener android kotlin

view.setOnLongClickListener{
     Toast.makeText(this, "Long click detected", Toast.LENGTH_SHORT).show()
     return@setOnLongClickListener true
}
Posted by: Guest on December-20-2021

Code answers related to "how to set onlongclicklistener in kotlin"

Browse Popular Code Answers by Language