How to have a longPress Event on a CheckBox in Codenameone?

Viewed 47

i need to implement a long press event on a checkbox in codenameone. On normal buttons i use the longPointerPress method and a boolean to control if the short- or longpress event happens. With the checkboxes i cannot find that option, it only toggles between checked/unchecked.

How is it possible to use a long press on a checkbox?

Thanks for your help!

2 Answers

I'm not familiar with codenameone, but in Android you can just use setOnLongClickListener since every View has that function.

Related