I would like my kotlin activity to execute an action when a button is pressed for a longer period of time instead of reacting after just a "quick" click. What is the best way to do it?
Asked
Active
Viewed 53 times
1 Answers
2
Just like
button.setOnClickListener(...);
There is
button.setOnLongClickListener(...);

Inneke De Clippel
- 956
- 6
- 14