converted SVG is not displaying in android canvas -
i have eps image files. have converted .svg online converter nut converted svg not getting displayed on screen. (code works other original svg image).
is there can not use converted svg images in android apps?
here code:
public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); view = new gestureimageview(this); svgimg=svgparser.getsvgfromresource(getresources(),r.raw.american); view.setimagedrawable(svgimg.createpicturedrawable()); view.setlayoutparams(params); view.setmaxscale(15f); viewgroup layout = (viewgroup) findviewbyid(r.id.layout); layout.addview(view); }
i suggest not use svg android not support svg rasterization, may read more discussion here.
but if got stick svg here useful solutions may you.
is there lite svg viewer android
here beautiful tutorials display svg in android
android imageview , drawable svg support
android. imageview svg support
i have created sample code in xcode now.
Comments
Post a Comment