最近开发了一个APP,虽然是一个小APP,但是麻雀虽小五脏俱全。以下简单介绍一下用到的开源组件。
源文地址:http://ihongqiqu.com/2017/11/29/Common-Android-Open-Source-Project/
功能类
ButterKnife
自从用上Butter Knife,再也不用findViewById这种代码了。Android界JakeWharton大神出品,必属精品,强烈推荐使用。
Github地址:https://github.com/JakeWharton/butterknife
使用文档:http://jakewharton.github.io/butterknife/
Lombok
自从使用了Lombok,实体类告别了大段大段的set/get方法。简简单单的一行注解,告别成百上千行的实体类。
Github地址:https://github.com/rzwitserloot/lombok
视频演示地址:https://projectlombok.org/
接入文档:https://projectlombok.org/setup/android
android-utils
开发过程中,工具类必不可少。自从用了android-utils,大大方便了开发,节省了自己开发时间。
Github地址:https://github.com/jingle1267/android-utils
realm-java
Realm为移动设备而生!替代 SQLite 和 Core Data。为你省下数周的时间和数千行的代码,帮你创造出更棒的用户体验。
Github地址:https://github.com/realm/realm-java
使用文档:https://realm.io/cn/docs/java/latest/
AndroidRequest
基于retrofit和okhttp封装的网络库,用户不需要了解网络底层实现,通过简单的设置就能实现网络请求。
Github地址:https://github.com/jingle1267/AndroidRequest
RxAndroid
RxAndroid是RxJava的扩展, 可以优雅地处理异步请求。很好很强大!
GitHub 地址:https://github.com/ReactiveX/RxAndroid
UI交互类
- TwinklingRefreshLayout
- Glide
- SwipeBackLayout
- Matisse
- CircleImageView
- FlycoTabLayout
- SHSegmentControl
- flexbox-layout
- Album
- SuperCalendar
- MaterialStepperView
TwinklingRefreshLayout
支持下拉刷新和上拉加载的RefreshLayout,自带越界回弹效果,支持RecyclerView,AbsListView,ScrollView,WebView。
Github地址:https://github.com/lcodecorex/TwinklingRefreshLayout
Glide
Google推荐的图片加载库,专注于流畅的滚动。
Github地址:https://github.com/bumptech/glide
SwipeBackLayout
类似微信的右滑关闭页面,本开源库支持右滑、左滑、上滑手势
Github地址:https://github.com/ikew0ng/SwipeBackLayout
Matisse
一个设计良好的本地图片/视频文件选择库,支持不同的图片加载方式。知乎出品,也是精品。
Github地址:https://github.com/zhihu/Matisse
CircleImageView
圆形图片,边框等,简单易用。
Github地址:https://github.com/hdodenhof/CircleImageView
FlycoTabLayout
Tab切换通用样式。
Github地址:https://github.com/H07000223/FlycoTabLayout
SHSegmentControl
仿iOS的Tag切换效果。
Github地址:https://github.com/7heaven/SHSegmentControl
flexbox-layout
谷歌官方流式布局,功能强大。
Github地址:https://github.com/google/flexbox-layout
Album
Album是一个MD风格的开源相册,支持国际化,支持国际化扩展;主要功能模块:选择图片与视频、拍照、录视频、画廊。
Github地址:https://github.com/yanzhenjie/Album
SuperCalendar
日历选择控件,代码简洁。自定义日历控件 支持左右无限滑动 周月切换 标记日期显示 自定义显示效果跳转到指定日期。
Github地址:https://github.com/MagicMashRoom/SuperCalendar
MaterialStepperView
带动画效果的步骤控件。
网友评论