Comments (5)
[deleted comment]
from androidsvg.
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.
No :/ same problem with your version. Only background is rendered.
Original comment by [email protected]
on 15 May 2015 at 2:09
from androidsvg.
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.
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)
- FAQ promotes extremely bad backward-compatibility practice HOT 6
- Image references missing SVG support. HOT 3
- Canvas changed after renderToCanvas HOT 1
- Position of Rectf ignored when renderToCanvas HOT 1
- Support for hardware acceleration
- Android version support HOT 1
- Android version support HOT 1
- Pattern fills are rendered with visible grid HOT 4
- Provide copy constructor or allow rendering to multiple viewBox at once HOT 3
- migrate the repository HOT 3
- Move project to Github HOT 1
- NullPointerException in 1.2.2-beta1 when parsing SVG document HOT 4
- SVGImageView crashes on Android 5.0 and higher HOT 5
- Proguard breaks reflective CSS selectors HOT 1
- java.lang.ArrayIndexOutOfBoundsException: length=0; index=-2 in SVGAndroidRenderer.arcTo(SourceFile:2572) HOT 1
- Unable to execute dex: Multiple dex files define HOT 1
- About License HOT 1
- Export to GitHub HOT 3
- Not able to detect the individual element click
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 androidsvg.