Skip to content

Instantly share code, notes, and snippets.

@amanjeetsingh150
Last active August 28, 2019 11:28
Show Gist options
  • Save amanjeetsingh150/56bd044c0f9f73fac2cbc417960d3f89 to your computer and use it in GitHub Desktop.
Save amanjeetsingh150/56bd044c0f9f73fac2cbc417960d3f89 to your computer and use it in GitHub Desktop.
v = valueAnimator.getAnimatedFraction();
lng = v * endPosition.longitude + (1 - v)* startPosition.longitude;
lat = v * endPosition.latitude + (1 - v)* startPosition.latitude;
LatLng newPos = new LatLng(lat, lng);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment