Android: How to scroll a closed path

14 views Asked by At

There's an arbitrary closed path, what I'm going to do is implement a "drawing animation" based on PathMeasure.getSegment(0, pathMeasure.length * animationProgress, path). It's like drawing with a pen on a piece of paper.

However, I want to change the starting point. Since the path is closed, theoretically, you can draw the full graph no matter where you start. How to do that?

For example:

scroll example

0

There are 0 answers