ImageViewZoom
ImageViewZoom copied to clipboard
OnScale listener
This is something I need in my app to track when user is scaling the image. I just place this listener to check that.
why do we need that listener?
My app tracks how the user zooms the image.
My Activity holding the ImageViewTouch has something like:
@Override
public void onDoubleTap() {
logger.logUserInteraction("", Constants.TrackingValues.TAP_TO_ZOOM);
}
@Override
public void onScale() {
logger.logUserInteraction("", Constants.TrackingValues.PINCH_TO_ZOOM);
}
ok but in that case probably we need also a listener for scroll and fling and maybe we should provide more info about the event
I was about to send the event but I think it would confuse the library user
listener is good idea, I personally had to modify code and add it for my purpose which was to turn on/of paging when zooming is active or not