通常建立一个新项目,需要使用各类库,而搜索这些库,比较繁琐,浪费时间,最近有时间,将使用过的库作集中记录,便于以后直接使用;
网络加载库
https://github.com/square/retrofit
https://github.com/square/okhttp
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:adapter-rxjava:2.0.1'
compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
Dagger2依赖注入
https://github.com/google/dagger
compile 'com.google.dagger:dagger:2.0.2'
apt 'com.google.dagger:dagger-compiler:2.0.2'
Butterknife依赖注入
https://github.com/JakeWharton/butterknife
compile 'com.jakewharton:butterknife:6.1.0'
Rxjava/Rxandroid
https://github.com/ReactiveX/RxJava
https://github.com/ReactiveX/RxAndroid
compile 'io.reactivex:rxandroid:0.24.0'
图片加载库
Glide是一个快速高效的Android图片加载库,注重于平滑的滚动。支持拉取,解码和展示视频快照,图片,和GIF动画。https://github.com/bumptech/glide
compile 'com.github.bumptech.glide:glide:3.7.0'
图片选择库
Android 图片选择器。充分自由定制,极大程度简化使用,支持图库多选/图片预览/单选/照片裁剪/拍照/自定义图片加载方式/自定义色调/沉浸式状态栏 https://github.com/smuyyh/ImageSelector
compile 'com.yuyh.imgsel:library:1.3.8'
图片预览库
双击放大、快速滑动、双指放大,普通拖动。https://github.com/chrisbanes/PhotoView
compile 'com.github.chrisbanes:PhotoView:1.3.1'
图片轮播库
令人惊异和高度兼容功能的一个Android幻灯片库。https://github.com/daimajia/AndroidImageSlider
compile 'com.daimajia.slider:library:1.1.5'
下拉刷新
下拉刷新、上拉加载、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。https://github.com/scwang90/SmartRefreshLayout
// 需要com.android.support:appcompat-v7 com.android.support:design包的支持
compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.3'
RecycleView
下拉刷新,自动加载更多;仿IOS侧滑Item删除菜单 https://github.com/jdsjlzx/LRecyclerView
compile 'com.github.jdsjlzx:LRecyclerView:1.4.3'
adapter适配库
Android 万能的Adapter for ListView,RecyclerView,GridView等,支持多种Item类型的情况。https://github.com/hongyangAndroid/baseAdapter
compile 'com.zhy:base-rvadapter:3.0.3'
compile 'com.zhy:base-adapter:3.0.3'
指示器库
强大、可定制、易扩展的 ViewPager 指示器框架。是ViewPagerIndicator、TabLayout、PagerSlidingTabStrip的最佳替代品。支持角标,更支持在非ViewPager场景下使用(使用hide()、show()切换Fragment或使用setVisibility切换FrameLayout里的View等)https://github.com/hackware1993/MagicIndicator
compile 'com.github.hackware1993:MagicIndicator:1.5.0'
跑马灯
可垂直跑、可水平跑的跑马灯;学名:可垂直翻、可水平翻的翻页公告 https://github.com/sfsheng0322/MarqueeView
compile 'com.sunfusheng:marqueeview:1.1.0'
日志打印类
https://github.com/JakeWharton/timber
compile 'com.jakewharton.timber:timber:3.1.0'
内存泄漏库
Android 和 Java 内存泄露检测。https://github.com/square/leakcanary
中文说明:https://www.liaohuqiu.net/cn/posts/leak-canary-read-me/
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4'
分包库
compile 'com.android.support:multidex:1.0.1'
二维码扫描
compile 'com.journeyapps:zxing-android-embedded:3.5.0'
富文本编辑器
https://github.com/mthli/Knife
compile 'com.github.mthli:Knife:v1.1'
第三方平台--------------------------------------------------------------------------------
优酷视频播放库
http://cloud.youku.com/down/play
compile 'com.alibaba:fastjson:1.1.56.android'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile(name: 'YoukuPlayerOpenSDK-release', ext: 'aar')
微信
compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:1.0.2'
网友评论