Does Android support SVG? any example?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
I've just chucked up a Github repo and example repo for my own TPSVG library, which I originally created specifically for an application of mine.
https://github.com/TrevorPage/TPSVG_Android_SVG_Library
https://github.com/TrevorPage/TPSVG_Example1
Opera Mobile for Android supports svg, and Opera Mini supports static svg content.
Android supports vector drawables: https://developer.android.com/reference/android/graphics/drawable/VectorDrawable.html
And there exists an Android SVG to VectorDrawable Converter: http://inloop.github.io/svg2android/
There is a new library (under active development) androidsvg which allows one to incorporate svg images directly in to projects. It has the advantage of defining an
SVGImageView
which allows one to incorporate an svg directly in the layout xml.Finally, including svg in android is straightforward.
More details: Stack Overflow post
Check out Support vector drawable. Android studio has a tool to convert SVG files to .XML files.
when using AppCompat with ImageView (or subclasses such as ImageButton and FloatingActionButton), you’ll be able to use the new app:srcCompat attribute to reference vector drawables (as well as any other drawable available to android:src):
As of Android Support Library 23.3.0, support vector drawables can only be loaded via app:srcCompat or setImageResource()
Firefox for Android supports SVG.