ImageViewZoom icon indicating copy to clipboard operation
ImageViewZoom copied to clipboard

OnScale listener

Open Macarse opened this issue 12 years ago • 5 comments

This is something I need in my app to track when user is scaling the image. I just place this listener to check that.

Macarse avatar Mar 18 '13 17:03 Macarse

why do we need that listener?

sephiroth74 avatar Mar 18 '13 17:03 sephiroth74

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);
}

Macarse avatar Mar 18 '13 17:03 Macarse

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

sephiroth74 avatar Mar 18 '13 17:03 sephiroth74

I was about to send the event but I think it would confuse the library user

Macarse avatar Mar 18 '13 17:03 Macarse

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

Malachiasz avatar May 07 '13 16:05 Malachiasz