Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

find all paths in a pathView - findAllRichPaths() #35

Closed
tarek360 opened this issue Sep 2, 2018 · 1 comment
Closed

find all paths in a pathView - findAllRichPaths() #35

tarek360 opened this issue Sep 2, 2018 · 1 comment
Labels

Comments

@tarek360
Copy link
Owner

tarek360 commented Sep 2, 2018

There is a use case where we want to get all of the paths in the vector drawable to animate simultaneously or sequentially.

so instead of doing something like this

RichPath[] paths = new RichPath[20];

for (int i = 0; i < paths.length; i++) {
  paths[i] = pathView.findRichPathByIndex(i);
}

RichPathAnimator
  .animate(paths)
  .trimPathEnd(0, 1)
  .duration(1600)
  .start();

if we have this API findAllRichPaths() we can do this:

RichPathAnimator
  .animate(pathView.findAllRichPaths())
  .trimPathEnd(0, 1)
  .duration(1600)
  .start();

also check this usecase on stackoverflow.

@tarek360
Copy link
Owner Author

tarek360 commented Sep 2, 2018

Now we can use richPathView.findAllRichPaths() starting from version 0.1.1

@tarek360 tarek360 closed this as completed Sep 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant