關(guān)于Lottie 的功能介紹,各位請(qǐng)參考:http://www.jianshu.com/p/cae606f45c0b
同時(shí)也感謝大神的分享,在此我發(fā)表一下自己使用 Lottie的用后感把。
1、Lottie 只有在5.+才會(huì)很流暢,當(dāng)然4.+我也嘗試用過(guò),解析的比較慢,貌似 7秒左右才能顯示出來(lái),而且顯示的比較不流暢;
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確實(shí)很強(qiáng)大,解決了android 繁瑣的幀動(dòng)畫(huà)問(wèn)題,使用起來(lái)很方便。使用的方法大家還是參考上面的連接,都很詳細(xì)。
ps:能力有限,歡迎吐槽。
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注