Closed inneke-dc closed 5 years ago
did you check the ScalingScrollView
API? TileView
is a subclass of ScalingScrollView
. i can double check later today.
if there's nothing for it already, I can add a method smootheScaleAndScrollTo(int x, int y, float scale)
either later tonight or tomorrow.
added smoothScaleAndScrollTo
method in 4.0.4, now available. re-open and post back if this does not resolve your issue.
thanks for posting.
This is actually a duplicate of #165. That issue was solved but the methods used in the answer are no longer available in the new version of this library.
How would I go about scaling and scrolling to a certain point with an animation? Right now I use
but that is without animation.
The method
smoothScrollTo
only scrolls, so I would have to set the scale before calling this but then it looks weird since you seem to start from a random point. The methodsmoothScaleFromFocalPoint
doesn't scroll if the scale is unaltered, and doesn't center the provided coordinates. TheZoomScrollAnimator
is a private class, so even though there's a getter for it, I can't call theanimate
method directly.Is there any way at the moment to do this? Thanks in advance.