Android studio 常用依賴
阿新 • • 發佈:2018-12-16
這裡總結了一些專案經常需要用到的依賴,以前我都是記在一個txt檔案上 覺得太麻煩(不同電腦) 就打算把它轉移到部落格上 隨時可以看
哦 對了順帶一提 我的studio是3.1.2版本的 現在最高版本是8.2 有些檔案貌似需要翻牆 所以就沒更新3.2
這個版本依賴裡基本上都是28的
我會經常更新的
TabLayout
implementation 'com.android.support:design:28+'//tablayout橫著寫也就是普通的
implementation 'q.rorbin:VerticalTabLayout:1.2.5'//tablayout豎著寫的
implementation 'com.flyco.tablayout:FlycoTabLayout_Lib: [email protected]'//一個可以實現帶圖片的多功能tablayout
Okhttp
implementation 'com.squareup.okhttp3:okhttp:3.10.0' //網路請求Okhttp
Volley:這個我很少用 可能不是最新
implementation 'com.mcxiaoke.volley:library:1.0.19'//網路請求Volley
Retrofit
//網路請求Retrofit與所用Gson implementation 'com.squareup.retrofit2:retrofit:2.4.0' implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
Rxjava:三個都需要 配合上邊的Retrofit使用更佳
//Rxjava
implementation 'io.reactivex.rxjava2:rxjava:2.1.12'
implementation 'io.reactivex:rxandroid:1.1.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.2'
Gson
implementation 'com.google.code.gson:gson:2.8.1'//Gson解析
RecyclerView
implementation 'com.android.support:recyclerview-v7:28.0.0-alpha3'//RecyclerView
Glide
implementation 'com.github.bumptech.glide:glide:4.7.1'//Glide解析圖片
Picasso
implementation 'com.squareup.picasso:picasso:2.5.2'//Picasso解析圖片
輪播圖:感覺banner更方便
implementation 'com.jude:rollviewpager:1.4.5'//viewpager輪播圖
implementation 'com.youth.banner:banner:1.4.10'//banner輪播圖
ORM資料庫:這個我也不常用 GreenDao用的多
implementation 'com.j256.ormlite:ormlite-android:5.0'//ORM資料庫
GreenDao 資料庫
implementation 'org.greenrobot:greendao:3.2.2'//GreenDao資料庫
支援無限迴圈的廣告欄控制元件
implementation 'com.recker.flybanner:flybanner:1.3'
photoView圖片放大縮小
implementation 'com.github.chrisbanes.photoview:library:+' //photoView圖片放大縮小
implementation 'com.bm.photoview:library:1.4.1'//圓角矩形 沒試過
Butter knife註解:這個我沒用過。。。先記一下
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.3'
implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.0.3'