androidsvg icon indicating copy to clipboard operation
androidsvg copied to clipboard

Reuse SVGAndroidRenderer

Open ansman opened this issue 9 years ago • 1 comments

To avoid all the problem with Picture I would like to draw the SVG in my View's onDraw. The renderToCanvas method works great for this but it allocates a new renderer which is not optimal.

Would there be a way to create this renderer once instead of creating a new one each time.

ansman avatar Apr 04 '16 13:04 ansman

The entire UI should be made in SVG and rendered in a single pass on a single canvas. That would be the best solution for performances, especially when using SVG animations, tweens, transitions, etc.

Emasoft avatar Apr 04 '16 17:04 Emasoft