Closed immujahidkhan closed 3 years ago
AndroidSVG doesn't yet have any feature to let you modify the content of an SVG.
What you could do is
<svg>
...
<text ...>%%name%%</text>
...
</svg>
SVG.getFromString(svgStr)
But to it this way, the text in your SVG needs to be plain <text>
elements. In your example image above, the text "TEXT" is warped. So it cannot be plain text. So this technique will not work if you need to modify images like this.
If you needed to edit warped text, like the image above, you would need to:
SVG.getFromString(svgStr)
You can probably find libraries for steps #3 and #4. Finding code to do step #5 is probably harder.
Hope this helps a little. Good luck with your project.
Thanks for the detailed answer love you
I have list of svg images with text and i want to allow user to edit text , How it can be possible?
I want to make my project like this app :