Git Product home page Git Product logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Hi. Thanks for the bug report.

Are you able to post a screenshot of what is happening please?

What are the dimensions of the ImageView you are using for the SVG?  Is it a 
specific size, or are you using MATCH_PARENT etc?

Original comment by [email protected] on 9 Jul 2013 at 5:35

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Here is my complete code : 

public class MainActivity extends Activity
{

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        LinearLayout layout = new LinearLayout(this);
        ImageView imageView = new ImageView(this);
        imageView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
        SVG svg = null;
        try
        {
            svg = SVG.getFromResource(this, R.raw.harley);
            Drawable drawable = new PictureDrawable(svg.renderToPicture());
            imageView.setImageDrawable(drawable);
        }
        catch(SVGParseException e)
        {}
        layout.addView(imageView, new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
        setContentView(layout);
    }

}

Original comment by [email protected] on 9 Jul 2013 at 3:52

Attachments:

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Thanks for the additional info.

Original comment by [email protected] on 9 Jul 2013 at 4:40

  • Changed state: Accepted

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
I just tested this against my current development branch and it turns out this 
renders correctly.  So it looks like one of my other recent fixes resolved this 
issue.  The next release of AndroidSVG is coming soon.

I am closing this issue for now. If it is still happening after the next 
release (1.2) please let me know.

Original comment by [email protected] on 9 Jul 2013 at 4:50

  • Changed state: Fixed

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Version 1.2.0 has now been released. Please try this new version and let me 
know if your issue has been resolved. Thanks.

Original comment by [email protected] on 16 Jul 2013 at 3:06

from androidsvg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.