gesture-imageview icon indicating copy to clipboard operation
gesture-imageview copied to clipboard

viewpager support

Open gbrbks opened this issue 12 years ago • 6 comments

Hello!

Everything is working charmly but i intend to extend the functionality. I want to implement a function where the image is draggable and zoomable in a viewpager, viewpager is not pageable just when the edge of the image is on the screen (eg: fullscreen image or left or right side). The isZoomed function is working properly, so the viewpager control is the issue only. Any advice?

Thanks in advance!

gbrbks avatar Nov 14 '12 11:11 gbrbks

Yes I wish to have viewpager support too.

trietbui85 avatar Jan 04 '13 12:01 trietbui85

+1

TheNetStriker avatar Feb 19 '13 09:02 TheNetStriker

+2

mattster09 avatar Mar 26 '13 10:03 mattster09

+1

moskvin avatar Mar 26 '13 10:03 moskvin

+1

longdw avatar Mar 16 '14 09:03 longdw

It can be fixed easily by adding these line of codes at the end of "public boolean onTouch(View v, MotionEvent event)" method in "GestureImageViewTouchListener" class.

if(canDragX || canDragY) v.getParent().requestDisallowInterceptTouchEvent(true); else v.getParent().requestDisallowInterceptTouchEvent(false);

mirmilad avatar Oct 23 '14 07:10 mirmilad