You should use a custom ImageView with custom ViewPager, in ImageView, override onMeasure, onTouchEvent, for details check this library: https://github.com/Dreddik/AndroidTouchGallery
ViewPager should'n scroll
-
28-06-2023 - |
Pregunta
I'm testing the tutorial on http://www.androidhive.info/2013/09/android-fullscreen-image-slider-with-swipe-and-pinch-zoom-gestures/ and it works really well, but I've got a little problem.
If my image is zoomed, I don't want to swipe between the pages until I reach the edge of my image. How could I check it with the tutorial code?
I know, that I have to override onInterceptTouchEvent in a custom ViewPager and return false. But how can I check, if I should return true or false?
Edit: My image is zoomed by changing matrix-values.
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow