Comments (2)
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.
I tried using setUseLegacyParser(boolean)
. Here is the result:
Android drawable api 26
VectorMaster: use_legacy_parser="true"
VectorMaster: use_legacy_parser="false"
It is better but some imperfections subsist.
Anyway, thanks for your hard work!
from vectormaster.
Related Issues (20)
- API 16 not visible VectorMasterView, VectorMasterDrawable HOT 4
- Strange vector problems when the VectorMasterView size changes HOT 5
- drawable resources versus xml (suggestion) HOT 1
- how i can path name on vector clicked ? HOT 2
- Multiply path scale problem HOT 1
- Set app:vector_src Programmatically HOT 2
- Vector with multiple paths is drawn with only one
- Gradients not supported?
- Exception during setContentView HOT 3
- Black patch appearing in the middle of the vector.
- Utils.getVectorModel HOT 1
- Performance issue
- Resize Vector
- Support for Gradient Fill Colors
- Question: possible to decode VectorDrawable from byte array?
- Support color resources for fillColor, strokeColor
- Is there a way of using VectorMaster with remote views? HOT 1
- migrate to mavencentral HOT 2
- No option to update vector model
- Bug: VectorDrawable not shown correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vectormaster.