SVGAPlayer
付费咨询
如果你发现 SVGAPlayer 存在 BUG,请在 GitHub 上按照模板提交 issue。
如果有使用上的问题,请勿提交 issue(会被立刻关闭),请至知乎付费问答提问,我们会全程跟踪你的疑问。
SVGA Format
SVGA is an opensource animation library, develop by YY UED.
SVGA base on SVG's concept, but not compatible to SVG.
SVGA can play on iOS/Android/Web.
Install
Gradle
add JitPack.io repo build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
add dependency to build.gradle (Final Release https://jitpack.io/#yyued/SVGAPlayer-Android/ )
compile 'com.github.yyued:SVGAPlayer-Android:2.1.9'
Usage
Layout.xml
use layout.xml.
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:layout_width="match_parent"
app:source="posche.svga"
app:autoPlay="true"
android:background="#000" /