记录———Android开发常用依赖库

在Android开发当中使用正确的依赖库可以达到快速开发,减少开发成本,这里记录一下本人开发当中常用的依赖库。

组件视图绑定依赖——ButterKnife(强烈推荐)
ButterKnife是一个专注于Android系统的View注入框架,以前总是要写很多findViewById来找到View对象,有了ButterKnife可以很轻松的省去这些步骤。
添加依赖

    implementation 'com.jakewharton:butterknife:10.1.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'

GitHub地址:https://github.com/JakeWharton/butterknife

万能适配器——BaseRecyclerViewAdapterHelper(强烈推荐)
一款强大的适配器,优化Adapter,使用它可以减少70%的代码

    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.34'

GitHub地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper

图片加载框架——Glide(强烈推荐)
一行代码解决图片加载

    implementation 'com.github.bumptech.glide:glide:4.9.0'

GitHub地址:https://github.com/bumptech/glide

事件通知——Eventbus
在App内部实现事件通知(类似于广播)

    implementation 'org.greenrobot:eventbus:3.1.1'

GitHub地址:https://github.com/greenrobot/EventBus

沉浸式——Immersionbar
可Activity、Fragment进行状态栏隐藏,使界面更加美化

    implementation 'com.gyf.immersionbar:immersionbar:3.0.0-beta05'

GitHub地址:https://github.com/gyf-dev/ImmersionBar

网络请求——RxHttp
链式请求,几行代码即可完成一个请求操作

    implementation 'com.rxjava.rxhttp:rxhttp:1.1.5'
    annotationProcessor 'com.rxjava.rxhttp:rxhttp-compiler:1.1.5'

GitHub地址:https://github.com/liujingxing/RxHttp

下拉刷新、上拉加载——Smartrefresh
结合RecyclerView使用,超好用的下拉刷新、上拉加载

    implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-andx-16'
    implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0-andx-16'

GitHub地址:https://github.com/scwang90/SmartRefreshLayout

以上是几个非常好用的框架,有其他好用的框架欢迎在评论区留言,我再进行整理,谢谢大家啦!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值