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

Would it be possible to retrieve the paths coordinates within a view? #68

Open
PXNX opened this issue Jul 14, 2020 · 1 comment
Open

Comments

@PXNX
Copy link

PXNX commented Jul 14, 2020

Could be quite useful, e.g. to center on some specific position within a big vector drawable.

@tarek360
Copy link
Owner

tarek360 commented Jul 21, 2020

you can move your path using setTranslation API to move it anywhere, you need to know what is coordinates you want to move to, then you can do like below:

richPath.setTranslationX(x);
richPath.setTranslationY(y);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants