Giter Site home page Giter Site logo

Comments (2)

harjot-oberai avatar harjot-oberai commented on May 21, 2024

For the functionalities provided by the library, I had to parse the XML manually, but all the path parsing code has been shifted to native after API 21 and hence could not be used directly in the library. Therefore the code for parsing the xml is somewhat outdated even though I tried to port some changes from native back to java.

So the drawable API in android is updated and hence draws the vector perfectly, but the path parser I use is from API 21, therefore it is not able to draw the vector properly.

You may try to set use_legacy_parser="false". Setting this parameter will make the library use a 3rd party Path Parser for parsing the xml and it may render the vector properly.

I will have a look at the vector and try to change the parsing logic to remove the errors.

Cheers!

from vectormaster.

hivian avatar hivian commented on May 21, 2024

I tried using setUseLegacyParser(boolean). Here is the result:

Android drawable api 26

screen shot 2017-12-28 at 12 27 06

VectorMaster: use_legacy_parser="true"

screen shot 2017-12-28 at 12 18 50

VectorMaster: use_legacy_parser="false"

screen shot 2017-12-28 at 12 18 12

It is better but some imperfections subsist.

Anyway, thanks for your hard work!

from vectormaster.

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.