一、官方支持庫
compile ‘com.android.support:appcompat-v7:26.1.0’
compile ‘com.android.support:support-v4:26.1.0’
compile ‘com.android.support:recyclerview-v7:26.1.0’
compile ‘com.android.support:support-v13:26.1.0’
compile ‘com.android.support:design:26.1.0’
compile ‘com.android.support:cardview-v7:26.1.0’
…
二、第三方庫
部分庫是jitpack的發佈方式,需要在project下的build.gradle中加上(可直接加上,一勞永逸)
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
工具
Gson
- implementation ‘com.google.code.gson:gson:2.8.5’
- GitHub:https://github.com/google/gson
- 相關文章:Gson 解析教程
Glide
- implementation ‘com.github.bumptech.glide:glide:4.8.0’
- annotationProcessor ‘com.github.bumptech.glide:compiler:4.8.0’
- GitHub:https://github.com/bumptech/glide
- 相關文章:帶你全面瞭解Glide 4的用法
Glide Transformations
- implementation ‘jp.wasabeef:glide-transformations:3.3.0’
- Github:https://github.com/wasabeef/glide-transformations
Picasso
- implementation ‘com.squareup.picasso:picasso:2.71828’
- 官網:http://square.github.io/picasso/
- GitHub:https://github.com/square/picasso
- 相關文章:picasso-強大的Android圖片下載緩存庫
Picasso Transformations
- compile ‘jp.wasabeef:picasso-transformations:2.2.1’
- Github:https://github.com/wasabeef/picasso-transformations
Butter Knife
- implementation ‘com.jakewharton:butterknife:8.8.1’
- annotationProcessor ‘com.jakewharton:butterknife-compiler:8.8.1’
- 官網:http://jakewharton.github.io/butterknife/
- GitHub:https://github.com/JakeWharton/butterknife
- 相關文章:Butter Knife 配置和使用及插件
Dagger 2(Google)
- compile ‘com.google.dagger:dagger:2.x’
- annotationProcessor ‘com.google.dagger:dagger-compiler:2.x’
- Github:https://github.com/google/dagger
EventBus
- compile ‘org.greenrobot:eventbus:3.1.1’
- Github:https://github.com/greenrobot/EventBus
- 相關文章:EventBus使用詳解(一)——初步使用EventBus
EventBus使用詳解(二)——EventBus使用進階
greenDAO
- implementation ‘org.greenrobot:greendao:3.2.2’
- Github:https://github.com/greenrobot/greenDAO
- 相關文章:玩轉Android之數據庫框架greenDAO3.0使用指南
PermissionsDispatcher(6.0權限)
- implementation “com.github.hotchemi:permissionsdispatcher:4.0.0-alpha1”
- annotationProcessor “com.github.hotchemi:permissionsdispatcher-processor:4.0.0-alpha1”
- GitHub:https://github.com/hotchemi/PermissionsDispatcher
- 相關文章:Android6.0運行時權限。
RxPermissions(6.0權限)
- * implementation ‘com.github.tbruyelle:rxpermissions:0.10.2’*
- GitHub:https://github.com/tbruyelle/RxPermissions
Android Saripaar v2(表單校驗)
- compile ‘com.mobsandgeeks:android-saripaar:2.0.3’
- Github:https://github.com/ragunathjawahar/android-saripaar/
- 相關文章:Android之表單驗證,Validation三方集成。
YUtils(Android快速開發工具集合)
- implementation ‘com.github.yechaoa:YUtils:2.1.0’
- GitHub:https://github.com/yechaoa/YUtils
AndroidUtilCode(各種util)
- implementation ‘com.blankj:utilcode:1.19.0’
- GitHub:https://github.com/Blankj/AndroidUtilCode
網絡
OkHttp
- implementation ‘com.squareup.okhttp3:okhttp:3.11.0’
- 官網:http://square.github.io/okhttp/
- GitHub:https://github.com/square/okhttp
okhttp-utils(鴻洋_)
- compile ‘com.zhy:okhttputils:2.6.2’
- GitHub:https://github.com/hongyangAndroid/okhttputils
- 相關文章:Android OkHttp完全解析 是時候來了解OkHttp了
OkGo
- compile ‘com.lzy.net:okgo:3.0.4’
- GitHub:https://github.com/jeasonlzy/okhttp-OkGo
xUtils3
- compile ‘org.xutils:xutils:3.5.0’
- GitHub:https://github.com/wyouflf/xUtils3
MVP
- 官方例子Github:https://github.com/googlesamples/android-architecture/tree/todo-mvp/
- 相關文章:淺談 MVP in Android(鴻洋_)
MVP快速開發框架
Retrofit
- implementation ‘com.squareup.retrofit2:retrofit:2.4.0’
- 官網:http://square.github.io/retrofit/
- GitHub:https://github.com/square/retrofit
RX系列:https://github.com/ReactiveX
RxJava
- implementation “io.reactivex.rxjava2:rxjava:2.2.0”
- Github:https://github.com/ReactiveX/RxJava
RxAndroid
- implementation ‘io.reactivex.rxjava2:rxandroid:2.1.0’
- Github:https://github.com/ReactiveX/RxAndroid
RxKotlin
- compile ‘io.reactivex:rxkotlin:2.2.0’
- Github:https://github.com/ReactiveX/RxKotlin
- Kotlin:Kotlin中文文檔
RxBinding
Platform bindings:
- compile ‘com.jakewharton.rxbinding2:rxbinding:2.0.0’
‘support-v4’ library bindings:
- compile ‘com.jakewharton.rxbinding2:rxbinding-support-v4:2.0.0’
‘appcompat-v7’ library bindings:
- compile ‘com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0’
‘design’ library bindings:
- compile ‘com.jakewharton.rxbinding2:rxbinding-design:2.0.0’
‘recyclerview-v7’ library bindings:
- compile ‘com.jakewharton.rxbinding2:rxbinding-recyclerview-v7:2.0.0’
‘leanback-v17’ library bindings:
compile ‘com.jakewharton.rxbinding2:rxbinding-leanback-v17:2.0.0’
UI
MaterialEditText
- compile ‘com.rengwuxian.materialedittext:library:2.1.4’
- GitHub:https://github.com/rengwuxian/MaterialEditText
Android View Animations(各種動畫)
- compile ‘com.android.support:support-compat:25.1.1’
- compile ‘com.daimajia.easing:library:2.0@aar’
- compile ‘com.daimajia.androidanimations:library:2.2@aar’
- GitHub:https://github.com/daimajia/AndroidViewAnimations
hellocharts-android(圖表)
- compile ‘com.github.lecho:hellocharts-android:v1.5.8’
- GitHub:https://github.com/lecho/hellocharts-android
BottomBar(底部導航欄)
- compile ‘com.roughike:bottom-bar:2.3.1’
- GitHub:https://github.com/roughike/BottomBar
BottomNavigationViewEx
- compile ‘com.github.ittianyu:BottomNavigationViewEx:1.2.4”
- GitHub:https://github.com/ittianyu/BottomNavigationViewEx
Banner(圖片輪播控件)
- compile ‘com.youth.banner:banner:1.4.10’
- GitHub:https://github.com/youth5201314/banner
Dachshund-Tab-Layout
- compile ‘com.github.Andy671:Dachshund-Tab-Layout:v0.3.3’
- GitHub:https://github.com/Andy671/Dachshund-Tab-Layout
Android PagerSlidingTabStrip(滑動導航欄)
- compile ‘com.astuetz:pagerslidingtabstrip:1.0.1’
- GitHub:https://github.com/astuetz/PagerSlidingTabStrip
XRefreshView(支持各種控件刷新)
- compile ‘com.huxq17.xrefreshview:xrefreshview:3.6.9’
- GitHub:https://github.com/huxq17/XRefreshView
- 相關文章:打造android萬能上拉下拉刷新框架——XRefreshView (一)
打造android萬能上拉下拉刷新框架——XRefreshView (二)
打造Android萬能上拉下拉刷新框架–XRefreshView(三)
SuperRecyclerView
- compile ‘com.supercwn.superrecycleview:superlibrary:1.2.5’
- GitHub:https://github.com/supercwn/SuperRecycleView
EasyRecyclerView
- compile ‘com.jude:easyrecyclerview:4.4.2’
- GitHub:https://github.com/Jude95/EasyRecyclerView
BaseRecyclerViewAdapterHelper
- compile ‘com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.41’
- GitHub:https://github.com/CymChad/BaseRecyclerViewAdapterHelper
vlayout(RecyclerView的LayoutManager擴展-阿里)
- compile (‘com.alibaba.android:vlayout:1.2.8@aar’) {transitive = true}
- GitHub:https://github.com/alibaba/vlayout
RichText(富文本解析器)
- compile ‘com.zzhoujay.richtext:richtext:3.0.7’
- GitHub:https://github.com/zzhoujay/RichText
ViewPagerIndicator
- compile ‘com.shizhefei:ViewPagerIndicator:1.1.7’
- GitHub:https://github.com/LuckyJayce/ViewPagerIndicator
EasyIndicator
- compile ‘com.github.LuckSiege:EasyIndicator:v1.1.3’
- GitHub:https://github.com/LuckSiege/EasyIndicator
ImagePicker(圖片選擇器,okgo作者)
- compile ‘com.lzy.widget:imagepicker:0.6.1’
- GitHub:https://github.com/jeasonlzy/ImagePicker
PictureSelector
- implementation ‘com.github.LuckSiege.PictureSelector:picture_library:v2.2.3’
- GitHub:https://github.com/LuckSiege/PictureSelector
Matisse(知乎)
- compile ‘com.zhihu.android:matisse:0.5.2-beta2’
- GitHub:https://github.com/zhihu/Matisse
PhotoView
- compile ‘com.github.chrisbanes:PhotoView:2.1.4’
- GitHub:https://github.com/chrisbanes/PhotoView
Android-SpinKit(Android loading animations)
- compile ‘com.github.ybq:Android-SpinKit:1.1.0’
- GitHub:https://github.com/ybq/Android-SpinKit
- 官網:http://ybq.github.io/Android-SpinKit/
Toasty
- implementation ‘com.github.GrenderG:Toasty:1.3.0’
- GitHub:https://github.com/GrenderG/Toasty
DialogPlus(各種樣式的Dialog)
- implementation ‘com.orhanobut:dialogplus:1.11@aar’
- GitHub:https://github.com/orhanobut/dialogplus
MaterialDateTimePicker
- compile ‘com.wdullaer:materialdatetimepicker:3.6.3’
- GitHub:https://github.com/wdullaer/MaterialDateTimePicker
FloatingActionButton
- compile ‘com.github.clans:fab:1.6.4’
- GitHub:https://github.com/Clans/FloatingActionButton
三、各種好用的插件
安裝方法
可能有的插件搜索不到,直接點擊Search in repositories
點擊install開始安裝,安轉成功之後會提示restart重啓as,重啓就好了。
GsonFormat
- 快速將json字符串轉換成一個Java Bean
- 快捷鍵Alt+S
Android ButterKnife Zelezny
- 配合ButterKnife快速生成註解
- 光標放在佈局文件ID上(如R.layut.activity_main),Ctrl+Shift+B
Android Methods Count
- 可查看依賴庫中的方法數
Lifecycle Sorter
- 對Activity或者fragment的生命週期方法進行先後排序
- Ctrl + alt + K
JsonOnlineViewer
- 直接在as中請求接口,方便調試
genymotion
- 超快超好用的android模擬器
LeakCanary
- 檢測內存泄露
- github:https://github.com/square/leakcanary