Skip to content

Instantly share code, notes, and snippets.

@tarek360
Last active March 8, 2018 05:14
Show Gist options
  • Save tarek360/84d67ccc384897459ca05e85d8841c57 to your computer and use it in GitHub Desktop.
Save tarek360/84d67ccc384897459ca05e85d8841c57 to your computer and use it in GitHub Desktop.
final RichPath richPath = imageView.findFirstRichPath();
richPath.setStrokeColor(Color.BLACK);
richPath.setStrokeWidth(1f);
RichPathAnimator
.animate(richPath)
.pathData(elephantPathData)
.fillColor(elephantFillColor)
.duration(600)
.thenAnimate(richPath)
.pathData(buffaloPathData)
.fillColor(buffaloFillColor)
.duration(600)
.thenAnimate(richPath)
.pathData(hippoPathData)
.fillColor(hippoFillColor)
.duration(600)
.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment