gesture-imageview
gesture-imageview copied to clipboard
viewpager support
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!
Yes I wish to have viewpager support too.
+1
+2
+1
+1
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);