RichPath icon indicating copy to clipboard operation
RichPath copied to clipboard

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

Open PXNX opened this issue 5 years ago • 1 comments
trafficstars

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

PXNX avatar Jul 14 '20 20:07 PXNX

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);

tarek360 avatar Jul 21 '20 16:07 tarek360