almosr / android-svg-code-render

Convert SVG files into Java source and use it in your Android app
Apache License 2.0
24 stars 3 forks source link

How to zoom into portion of SVG #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi! I'm fairly new to Android development, and I need some help zooming into a 
portion of my SVG file on application startup.  

From what I understand from the Javadocs, I should use one of the 
renderViewToCanvas() methods, but I'm not really sure how to define the viewId. 
 The API Summary defines the following in the Rendering Views section:

<view id="MyView" viewBox="0 0 100 100"/>

But this is not a valid XML tag... Can someone help me understand how to 
properly use renderViewToCanvas() to fit me needs?  Thanks in advance.

Original issue reported on code.google.com by mtha...@gmail.com on 11 Jul 2014 at 2:51

GoogleCodeExporter commented 9 years ago
Closing this because it is not a bug report.

I will answer by email.

Original comment by paul.leb...@gmail.com on 11 Jul 2014 at 3:03

GoogleCodeExporter commented 9 years ago
Hi!  Sorry for wrong placement of my problem.  Here's my post restated:

I'm fairly new to Android development, and I need some help zooming
into a portion of my SVG file on application startup.

From what I understand from the Javadocs, I should use one of the
renderViewToCanvas() methods, but I'm not really sure how to define
the viewId.  The API Summary defines the following in the Rendering
Views section:

<view id="MyView" viewBox="0 0 100 100"/>

But this is not a valid XML tag... Can you please help me understand
how to properly use renderViewToCanvas() to fit my needs?

Thank you so much,

Melissa

Original comment by mtha...@gmail.com on 11 Jul 2014 at 3:13