If you have an animator like ValueAnimator then in...
# android
m
If you have an animator like ValueAnimator then in it’s listener you can do sth like:
Copy code
PathMeasure pm = new PathMeasure(myPath, false);
    //coordinates will be here
    float aCoordinates[] = {0f, 0f};

    //get coordinates of the middle point
    pm.getPosTan(pm.getLength() *animator.getAnimatedFraction(), aCoordinates, null);