How to fill svg shape when i touch on svg image without loss quality of svg

538 views Asked by At

This image is SVG image which is loaded into SVGImageView. I can't fill color into SVG with onTouch listener. I am tired to fill color into particular shape or area. Help me. Thank you.

https://i.stack.imgur.com/96TM5.png

And fill area with different color like this :

https://i.stack.imgur.com/t9zXG.jpg

1

There are 1 answers

3
Paul LeBeau On

AFAIK at the moment none of the SVG libraries for Android support interaction. I am the author of AndroidSVG and it is a high priority on my list of things to implement.

If you need it now, however, I think you will need to resort to displaying the SVG in a WebView and using Javascript events to determine what is clicked on.