Open Gkemon opened 3 years ago
Yes swipe up and down is common interface in almost all apps these days. Any solution for that??
Do you mean while actively zooming, or while an image is already zoomed in (ie a larger scale than 1)?
@jsibbold same like reddit, WhatsApp, Twitter etc. All worked when image is zoomed out to our original size and swipe up or down dismissed the popup
Any update on this ?
Currently a bit swamped with other things, best thing to do for now is just adjust the source to your needs.
@jsibbold I will post my update on this. I have already added this feature. I will post my code later. Thanks for the great and effective code for imageview.
COPIED FROM MY ORIGINAL StackOverflow QUESTION
I'm using the ZoomageView library in
PopupWindows
to show an image with zoomable capacity. But the problem is that I want to dismiss it by a swipe to the top but can't because ZoomageView has its ownScaleGestureDetector
. I added my own custom touchListener to detect top swipe by the following approach -But it conflicts with ZoomageView's zooming attitude because while the image is being zoomed then if the user swipe to top for moving the image (because when the image is zoomed then the user may move the image in any directions) then
onSwipeTop
is called which dismiss the popup.I just want to dismiss popup while the image is not zoomed and while the image is zoomed then ignore the
onSwipeTop
.