java - Handle clicks on Image in ImageViewer (Codenameone) -


we try make image clickable time within image viewer. in view, there no listener it?

we have gallery of images. after clicking on image opened in separate window.

in thread found opportunity put image on button. need restructure our gallery, want avoid

here code opening image. works far:

form picture = (form) createcontainer(res, "imageviewer"); beforeimageviewer(picture, currentobjektmodel); picture.showback(); postimageviewer(picture, iv.getimagelist().getitemat(iv.getimagelist().getselectedindex())); 

the problem doing image viewer handles pointer events swipe/pan rely on. can use scaleimagebutton cases since need swiping not option.

you can derive image viewer , override pointerpressed & pointerreleased.

if pressed called released after , distance between 2 x/y coordinates (from pressed/released) small that's click.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -