GithubHelp home page GithubHelp logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
[deleted comment]

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Thanks for the report.

I suspect it is probably the <use> in the <clipPath> that is the problem.  Does 
this version of the file work?

Original comment by [email protected] on 15 May 2015 at 1:58

Attachments:

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
No :/ same problem with your version. Only background is rendered. 

Original comment by [email protected] on 15 May 2015 at 2:09

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Ok i find. When i use SVGImageView and define in xml 

    <com.caverock.androidsvg.SVGImageView
        android:id="@+id/menu"
        android:layout_width="40dp"
        android:layout_height="40dp"
        svgimageview:svg="svg/Issue63b.svg" />

it dosn't work but if i load svg using SVG.getFromAsset

SVG svg = SVG.getFromAsset(ctx.getResources().getAssets(), 
SVG_FOLDER_NAME+"/"+name);
ret = Bitmap.createBitmap(width, height, Config.ARGB_8888);
Canvas canvas = new Canvas(ret);
svg.setDocumentHeight(height);
svg.setDocumentWidth(width);
svg.renderToCanvas(canvas);

everything is fine. It does not matter whether I use my or your svg version.

Original comment by [email protected] on 15 May 2015 at 2:34

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
menuButton = (SVGImageView)findViewById(R.id.menu);
menuButton.setImageAsset("svg/menu.svg");

this way don't work to. 

Original comment by [email protected] on 15 May 2015 at 2:43

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.