關于Lottie 的功能介紹,各位請參考:http://www.jianshu.com/p/cae606f45c0b
同時也感謝大神的分享,在此我發(fā)表一下自己使用 Lottie的用后感把。
1、Lottie 只有在5.+才會很流暢,當然4.+我也嘗試用過,解析的比較慢,貌似 7秒左右才能顯示出來,而且顯示的比較不流暢;
android { compileSdkVersion 24 buildToolsVersion "24.0.2" defaultConfig { applicationId "com.lottie_master" minSdkVersion 17 targetSdkVersion 24 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false PRoguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }}dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:24+' compile 'com.airbnb.android:lottie:1.0.1' testCompile 'junit:junit:4.12'} 主要配置大概如上,compileSdkVersion 貌似必須24+ ,不然各種 style找不到。2、Lottie確實很強大,解決了android 繁瑣的幀動畫問題,使用起來很方便。使用的方法大家還是參考上面的連接,都很詳細。
ps:能力有限,歡迎吐槽。
新聞熱點
疑難解答