java - Android - Image zoom library -
i have kind of use-case
user looking @ imageview, imageview should implement 2 types of gestures:
- swipe left/right move previous/next image
- zoom image (two-fingers, double-tap)
for swipe i've used implementation here https://stackoverflow.com/a/8806468/492624
can see here: https://github.com/smarek/simple-dilbert/blob/master/src/com/mareksebera/dilbert/activityswipedetector.java
for double-tap, two-fingers i've used library named photoview
can see here: https://github.com/smarek/simple-dilbert/blob/master/src/com/mareksebera/dilbert/imagezoomactivity.java
the problem is, i'm not able combine these 2 implementations.
i'd user have both options on 1 page, 1 idea rewrite "single imageview" "viewpager", implement paging on lower level (not ontouchlistener
) , use photoview library provide zoom function.
possible user-scenario me:
- if image not zoomed, user can use swipe gestures move through images
- if image zoomed, user can work zoom , move in zoomed image, left-right swipe not work in case, user forced un-zoom able display another
so 2 qeustions on table
- whether user-scenario right , understandable
- if there option combine these or use library without need rewrite
viewpager
can't use code sample of photoview?
this works me: https://play.google.com/store/apps/details?id=uk.co.senab.photoview.sample
Comments
Post a Comment