is there a longpress event for button click

41 views
Skip to first unread message

CODENAME1

unread,
Jan 25, 2017, 9:13:19 AM1/25/17
to CodenameOne Discussions
in the button click action , event.islognpress() always returns true.
is the button.longress functionality supported?

shyam tha

unread,
Jan 26, 2017, 12:02:59 AM1/26/17
to CodenameOne Discussions
Hi
 override longPointerPress of Button as shown in below 

Button longPressedButton = new Button(){

            @Override
            public void longPointerPress(int x, int y) {
//                super.longPointerPress(x, y); //To change body of generated methods, choose Tools | Templates.
                System.out.println(" long pointer pressed");
            }

            
            
        };
Reply all
Reply to author
Forward
0 new messages