Senior III
May 31, 2021
Solved
How to detect long press on custom container?
- May 31, 2021
- 8 replies
- 3954 views
So I create a simple custom container containing just a box. Then I create 3 instances of this custom container in Screen1. I modify the custom container class to detect single click. But how to detect long press > 1s on any of these 3 containers?
Attached is the partially done of the project, it is able to detect single click but not long press. Can someone give me some pointer or maybe complete the project?
So the final objective is for function onLongPressHandler() in CustomContainer1 class called when there is long press.