We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello Jason. I tried out your yesterdays commit. And i have question about the image view position change during animation.
What I want to achieve is to zoom in to a certain position so that my newX and newY are on displays top left corner.
this is what I was using in the doubletaplistener
float scale = calcScale(image); int iH = image.getImageHeight(); int iW = image.getImageWidth(); int newX = Math.round((iW / 2 - 25) * scale); int newY = Math.round((iH / 2 - 200) * scale); image.setScale(scale); image.setPosition(newX, newY);
I cant use this anymore like this and In the ZoomAnimation I cant see how you are setting the position of the imageview.
Cheers,
Vadimo
The text was updated successfully, but these errors were encountered:
Hi Vad,
The ZoomAnimation doesn't change the view's position directly, rather it calls a listener which resides inside the gesture handler:
https://github.com/jasonpolites/gesture-imageview/blob/master/main/src/com/polites/android/GestureImageViewTouchListener.java#L127
Sorry, something went wrong.
thank you I now got it. Just needed to change the vector direction, scale and it worked :)
No branches or pull requests
Hello Jason.
I tried out your yesterdays commit. And i have question about the image view position change during animation.
What I want to achieve is to zoom in to a certain position so that my newX and newY are on displays top left corner.
this is what I was using in the doubletaplistener
I cant use this anymore like this and In the ZoomAnimation I cant see how you are setting the position of the imageview.
Cheers,
Vadimo
The text was updated successfully, but these errors were encountered: