okaybroda / ImageZoom

An Android library that makes any view to be zoomable.
GNU General Public License v3.0
120 stars 25 forks source link

Usage in fragment #1

Closed timbaev closed 7 years ago

timbaev commented 7 years ago

How I can override this method in fragment? @Override public boolean dispatchTouchEvent(MotionEvent ev) { return imageZoomHelper.onDispatchTouchEvent(ev) || super.dispatchTouchEvent(ev); }

okaybroda commented 7 years ago

Just place that code in the Activity that holds that Fragment. The touch event should be passed down from the Activity to the Fragment's Views.