android studio第三方框架總結

第三方框架gradle添加:

UI

Material design和Support library控件

 compile 'com.android.support:appcompat-v7:25.3.1'
 compile 'com.android.support:design:25.3.1'


網絡框架

volley

compile 'com.mcxiaoke.volley:library:1.0.19'

github:https://github.com/mcxiaoke/android-volley

圖片框架

picasso

compile 'com.squareup.picasso:picasso:2.5.2'

主頁:http://square.github.io/picasso/

github:http://square.github.io/picasso/

glide

repositories {
  mavenCentral()
  google()
}

dependencies {
  implementation 'com.github.bumptech.glide:glide:4.7.1'
  annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
}
Glide默認會導入Android的support-v4包。4.71版本默認導入的是v4包的27版本。如果你的項目中有v4包的別的版本,就會引起衝突發生錯誤

java.lang.NoSuchMethodError: No static method

github:https://github.com/bumptech/glide

json解析

gson

dependencies {
   compile 'com.google.code.gson:gson:2.8.5'
}

github:https://github.com/google/gson

事件通知

eventbus

compile 'org.greenrobot:eventbus:3.1.1'

github:https://github.com/greenrobot/EventBus

圖片輪播

banner

dependencies{
    compile 'com.youth.banner:banner:1.4.10'  //最新版本
}

github:https://github.com/youth5201314/banner


其它

圖文混排textview

repositories {
    jcenter()
}

dependencies {
    compile 'org.sufficientlysecure:html-textview:3.5'
}

github:https://github.com/PrivacyApps/html-textview

圖形

 dependencies{
		compile 'com.github.lecho:hellocharts-library:1.5.8@aar'
   }

github:https://github.com/lecho/hellocharts-android


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章