Android快速開發整理(圖庫、外掛、常用網站)
轉載請明顯標註出處
一、官方支援庫
implementation "androidx.core:core-ktx:1.3.2"
implementation "androidx.appcompat:appcompat:1.2.0"
implementation "com.google.android.material:material:1.2.1"
…
建議遷移到androidx
二、第三方函式庫
部分庫是jitpack的發布方式,需要在project下的build.gradle中加上(可直接加上,一勞永逸)
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
工具
Gson
- implementation 'com.google.code.gson:gson:2.8.6'
- GitHub:https://github.com/google/gson
- 相關文章:Gson 解析教程
Glide
- implementation 'com.github.bumptech.glide:glide:4.11.0'
- annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
- GitHub:https://github.com/bumptech/glide
- 相關文章:帶你全面了解Glide 4的用法
Glide Transformations
- implementation 'jp.wasabeef:glide-transformations:4.1.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
- implementation 'jp.wasabeef:picasso-transformations:2.2.1'
- Github:https://github.com/wasabeef/picasso-transformations
Butter Knife
- implementation 'com.jakewharton:butterknife:10.2.0'
- annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.0'
- 官網:http://jakewharton.github.io/butterknife/
- GitHub:https://github.com/JakeWharton/butterknife
- 相關文章:Butter Knife 配置與使用及插件
Dagger 2(Google)
- implementation 'com.google.dagger:dagger:2.22.1'
- annotationProcessor 'com.google.dagger:dagger-compiler:2.22.1'
- Github:https://github.com/google/dagger
EventBus
- implementation 'org.greenrobot:eventbus:3.2.0'
- 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使用指南
LitePal(資料庫)
- implementation 'org.litepal.guolindev:core:3.2.2'
- Github:https://github.com/guolindev/LitePal
PermissionsDispatcher(6.0權限)
- implementation "com.github.hotchemi:permissionsdispatcher:4.6.0"
- annotationProcessor "com.github.hotchemi:permissionsdispatcher-processor:4.6.0"
- 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
PermissionX(6.0權限)
- ** implementation 'com.permissionx.guolindev:permissionx:1.4.0'**
- GitHub:https://github.com/guolindev/PermissionX
Android Saripaar v2(表單校驗)
- implementation 'com.mobsandgeeks:android-saripaar:2.0.3'
- Github:https://github.com/ragunathjawahar/android-saripaar/
- 相關文章:Android之表單驗證,Validation三方整合。
YUtils(Android快速開發工具集合)
- implementation 'com.github.yechaoa:YUtils:3.1.1'
- GitHub:https://github.com/yechaoa/YUtils
AndroidUtilCode(各種util)
- implementation 'com.blankj:utilcode:1.29.0'
- GitHub:https://github.com/Blankj/AndroidUtilCode
網路
OkHttp
- implementation("com.squareup.okhttp3:okhttp:4.9.0")
- 官網:http://square.github.io/okhttp/
- GitHub:https://github.com/square/okhttp
okhttp-utils(鴻洋_)
- implementation 'com.zhy:okhttputils:2.6.2'
- GitHub:https://github.com/hongyangAndroid/okhttputils
- 相關文章:Android OkHttp完全解析是時候來了解OkHttp了
OkGo
- implementation 'com.lzy.net:okgo:3.0.4'
- GitHub:https://github.com/jeasonlzy/okhttp-OkGo
xUtils3
- implementation 'org.xutils:xutils:3.8.3'
- GitHub:https://github.com/wyouflf/xUtils3
Retrofit
- implementation 'com.squareup.retrofit2:retrofit:2.9.0'
- 官網:http://square.github.io/retrofit/
- GitHub:https://github.com/square/retrofit
RX系列:https://github.com/ReactiveX
RxJava
- implementation "io.reactivex.rxjava2:rxjava:3.0.7"
- Github:https://github.com/ReactiveX/RxJava
RxAndroid
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
- Github:https://github.com/ReactiveX/RxAndroid
RxKotlin
- implementation 'io.reactivex:rxkotlin:2.4.0'
- Github:https://github.com/ReactiveX/RxKotlin
- Kotlin:Kotlin中文文檔
UI
MaterialEditText
- implementation 'com.rengwuxian.materialedittext:library:2.1.4'
- GitHub:https://github.com/rengwuxian/MaterialEditText
Android View Animations(各種動畫)
- implementation 'com.android.support:support-compat:25.1.1'
- implementation 'com.daimajia.easing:library:2.0@aar'
- implementation 'com.daimajia.androidanimations:library:2.2@aar'
- GitHub:https://github.com/daimajia/AndroidViewAnimations
hellocharts-android(圖表)
- implementation 'com.github.lecho:hellocharts-android:v1.5.8'
- GitHub:https://github.com/lecho/hellocharts-android
BottomBar(底部導覽列)
- implementation 'com.roughike:bottom-bar:2.3.1'
- GitHub:https://github.com/roughike/BottomBar
BottomNavigationViewEx
- implementation 'com.github.ittianyu:BottomNavigationViewEx:1.2.4''
- GitHub:https://github.com/ittianyu/BottomNavigationViewEx
Banner(圖片輪播控制)
- implementation 'com.youth.banner:banner:1.4.10'
- GitHub:https://github.com/youth5201314/banner
Dachshund-Tab-Layout
- implementation 'com.github.Andy671:Dachshund-Tab-Layout:v0.3.3'
- GitHub:https://github.com/Andy671/Dachshund-Tab-Layout
Android PagerSlidingTabStrip(滑動導覽列)
- implementation 'com.astuetz:pagerslidingtabstrip:1.0.1'
- GitHub:https://github.com/astuetz/PagerSlidingTabStrip
EasyRecyclerView
- implementation 'com.jude:easyrecyclerview:4.4.2'
- GitHub:https://github.com/Jude95/EasyRecyclerView
BaseRecyclerViewAdapterHelper
- implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
- GitHub:https://github.com/CymChad/BaseRecyclerViewAdapterHelper
vlayout(RecyclerView的LayoutManager擴充-阿里)
- implementation ('com.alibaba.android:vlayout:1.2.8@aar') {transitive = true}
- GitHub:https://github.com/alibaba/vlayout
RichText(富文本解析器)
- implementation 'com.zzhoujay.richtext:richtext:3.0.8'
- GitHub:https://github.com/zzhoujay/RichText
ViewPagerIndicator
- implementation 'com.shizhefei:ViewPagerIndicator:1.1.9'
- GitHub:https://github.com/LuckyJayce/ViewPagerIndicator
EasyIndicator
- implementation 'com.github.LuckSiege:EasyIndicator:v1.1.3'
- GitHub:https://github.com/LuckSiege/EasyIndicator
ImagePicker(圖片選擇器,okgo作者)
- implementation 'com.lzy.widget:imagepicker:0.6.1'
- GitHub:https://github.com/jeasonlzy/ImagePicker
PictureSelector
- implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.3.9'
- GitHub:https://github.com/LuckSiege/PictureSelector
Matisse(知乎)
- implementation 'com.zhihu.android:matisse:0.5.3-beta3'
- GitHub:https://github.com/zhihu/Matisse
PhotoView
- implementation 'com.github.chrisbanes:PhotoView:2.3.0'
- GitHub:https://github.com/chrisbanes/PhotoView
Android-SpinKit(Android loading animations)
- implementation 'com.github.ybq:Android-SpinKit:1.4.0'
- GitHub:https://github.com/ybq/Android-SpinKit
- 官網:http://ybq.github.io/Android-SpinKit/
Toasty
- implementation 'com.github.GrenderG:Toasty:1.4.2'
- GitHub:https://github.com/GrenderG/Toasty
DialogPlus(各種樣式的Dialog)
- implementation 'com.orhanobut:dialogplus:1.11@aar'
- GitHub:https://github.com/orhanobut/dialogplus
MaterialDateTimePicker
- implementation 'com.wdullaer:materialdatetimepicker:4.2.3'
- GitHub:https://github.com/wdullaer/MaterialDateTimePicker
FloatingActionButton
- implementation 'com.github.clans:fab:1.6.4'
- GitHub:https://github.com/Clans/FloatingActionButton
CityPicker
- implementation 'liji.library.dev:citypickerview:5.1.0'
- GitHub:https://github.com/crazyandcoder/citypicker
VerticalTabLayout
- implementation 'q.rorbin:VerticalTabLayout:1.2.5'
- GitHub:https://github.com/qstumn/VerticalTabLayout
SmartRefreshLayout(下拉刷新框架)
- implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-21'
- GitHub:https://github.com/scwang90/SmartRefreshLayout
AgentWeb(WebView框架)
- api 'com.just.agentweb:agentweb:4.1.2'
- GitHub:https://github.com/Justson/AgentWeb
FragmentRigger(Fragment管理框架)
- 存取引導:https://github.com/JingYeoh/FragmentRigger/wiki/%E9%A6%96%E9%A1%B5
- GitHub:https://github.com/JingYeoh/FragmentRigger
GSYVideoPlayer(影片播放器)
- implementation 'com.shuyu:GSYVideoPlayer:7.1.6'
- GitHub:https://github.com/CarGuo/GSYVideoPlayer
SwipeBackLayout(滑動返回)
- implementation 'me.imid.swipebacklayout.lib:library:1.1.0'
- GitHub:https://github.com/ikew0ng/SwipeBackLayout
BGASwipeBackLayout-Android
- implementation 'cn.bingoogolapple:bga-swipebacklayout:latestVersion@aar'
- GitHub:https://github.com/bingoogolapple/BGASwipeBackLayout-Android
recyclerview-animators(recyclerview動畫)
- implementation 'jp.wasabeef:recyclerview-animators:3.0.0'
- GitHub:https://github.com/wasabeef/recyclerview-animators
XPopup(各種彈跳窗)
- implementation 'com.lxj:xpopup:2.1.4'
- GitHub:https://github.com/li-xiaojun/XPopup
FlowLayout(串流佈局)
- implementation 'com.hyman:flowlayout-lib:1.1.2'
- GitHub:https://github.com/hongyangAndroid/FlowLayout
Switcher(切換按鈕)
- implementation 'com.bitvale:switcher:1.1.0'
- GitHub:https://github.com/bitvale/Switcher
EasyFloat(懸浮窗框架)
- implementation 'com.github.princekin-f:EasyFloat:1.3.4'
- GitHub:https://github.com/princekin-f/EasyFloat
GuideView(新手引導庫)
- implementation 'com.binioter:guideview:1.0.0'
- GitHub:https://github.com/binIoter/GuideView
StatusBarUtil(狀態列工具類別)
- implementation 'com.jaeger.statusbarutil:library:1.5.1'
- GitHub:https://github.com/laobie/StatusBarUtil
ImmersionBar(狀態列工具類別)
- implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
- GitHub:https://github.com/gyf-dev/ImmersionBar
三、各種好用的插件
安裝方法
可能有的插件搜尋不到,直接點擊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
genymotion
LeakCanary
- 檢測內存洩露
- github:https://github.com/square/leakcanary
Dart
Flutter
Json To Kotlin Class
Android Drawable Preview
- 可對drawable及mipmap下的資源檔案預覽
四、各種常用的網站
AndroidDevTools(各種android相關工具下載)
- http://www.androiddevtools.cn/index.html
線上文件-JDK
- http://tool.oschina.net/apidocs/apidoc?api=jdk_7u4
線上文檔-Android
- https://developer.android.google.cn/develop/index.html
線上文件-Kotlin
- https://github.com/wangjiegulu/kotlin-for-android-developers-zh/blob/master/SUMMARY.md
線上文檔-Glide
- https://muyangmin.github.io/glide-docs-cn/
線上文件-Flutter
- https://flutterchina.club/widgets-intro/
Material Design(參考文件)
- https://materialdoc.cn/components/autocomplete/
GitHub
Font Awesome Icons
- http://fontawesome.io/icons/
Json線上解析
API文件管理
stackoverflow(IT技術問答網站)
- https://stackoverflow.com/
CSDN全球最大中文IT社區
簡書
玩安卓
- https://www.wanandroid.com/
HenCoder
Android開發技術週報
ProcessOn免費線上作圖,即時協作
- https://www.processon.com/
阿里巴巴向量圖示庫
各種線上文件和工具(開源中國社區)
Mob開放平台(天氣、簡訊、分享等)
聚合資料(各種開放API)
融雲(即時通訊)
網易雲信(即時通訊)
螞蟻金服開放月台(支付寶)
- https://doc.open.alipay.com/
阿里移動熱修復
- https://help.aliyun.com/product/51340.html
阿里移動推播
- https://www.aliyun.com/product/cps
騰訊開放平台
- http://wiki.open.qq.com/wiki/首頁
微信開放平台
- https://open.weixin.qq.com/
騰訊信鴿推送
- https://xg.qq.com/docs/android_access/jcenter.html
騰訊Bugly
騰訊地圖
百度地圖
w3school(HTML)
- http://www.w3school.com.cn/tags/index.asp
Bootstrap*元件
- http://v3.bootcss.com/components/
友盟(推播統計)
360加固保
樂固
CSDN:https://blog.csdn.net/yechaoa/article/details/72870470
持續更新。 。 。
License
Copyright 2017 yechaoa
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.