android开发框架所必须的组件包

本文介绍了Android开发中必不可少的组件和框架,包括Android自带的控件包如appcompat-v7、recyclerview-v7等,解决大包问题的multidex,注解库butterknife,事件总线eventbus,图片加载库Glide,动画框架avi-loading,响应式编程库RxJava,网络请求框架Retrofit,内存泄漏检测库rxlifecycle,权限管理库rxpermissions,Okgo网络库,日志包logger,进度条组件numberprogressbar,图片压缩库compressor,圆形图片库circleimageview,数据库查询库litepal,图片查看库photoview,空视图组件emptyview,适配器基类baseadapter,异常监控腾讯Bugly,数据库框架greendao,滚动图片展示库banner,以及标签换行库flexbox。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

1>Android自带的控件包:

appcompat-v7, support-v4, design, annotations, recyclerview-v7, support-compat, cardview-v7

这些包对应Android的RecyclerView,ViewPager等常用的控件,同时也包含Android注解,对应的build.gradle写法:

compile     : "com.android.support:appcompat-v7:25.0.0",
compile     : "com.android.support:support-v4:25.0.0",
compile     : "com.android.support:design:25.0.0",
compile     : "com.android.support:support-annotations:25.0.0",
compile     : "com.android.support:recyclerview-v7:25.0.0",
compile     : "com.android.support:support-compat:25.0.0",
compile     : "com.android.support:cardview-v7:25.0.0"

2>  multidex(解决包体积代码过大65535问题)

compile     :"com.android.support:multidex:1.0.0"

3>  butterknife(注解相关依赖)

compile     :"com.jakewharton:butterknife:8.4.0"
compile     :"com.jakewharton:butterknife-compiler:8.4.0"

4>  eventbus(Android 事件总线)

compile     :"org.greenrobot:eventbus:3.0.0"

5>  glide (加载图片框架Glide以及Glide图片转换框架)

compile     :"com.github.bumptech.glide:glide:3.7.0"
compile     :"jp.wasabeef:glide-transformations:2.0.0"

6>  avi-loading(加载动画框架各种形式动画)

compile     :"com.wang.avi:library:2.1.0"

7>  Rxjava(Android链式操作库)

compile     :"io.reactivex.rxjava2:rxandroid:2.0.1"
compile     :"io.reactivex.rxjava2:rxjava:2.0.1"

8>  Retrofit(基于注解的网络请求框架)同时包含Okhttp

compile     :"com.squareup.retrofit2:retrofit:2.0"
compile     :"com.squareup.retrofit2:converter-gson:2.0"
compile     :"com.squareup.retrofit2:adapter-rxjava:2.0"
compile     :"com.squareup.okhttp3:logging-interceptor:3.8.0"
compile     :"com.squareup.okhttp3:okhttp::3.8.0"

9>  rxlifecycle(检测Rxjava内存泄漏)

compile     :"com.trello.rxlifecycle2:rxlifecycle:2.0"
compile     :"com.trello.rxlifecycle2:rxlifecycle-android:2.0"
compile     :"com.trello.rxlifecycle2:rxlifecycle-components::2.0"

10>  rxpermissions(基于Rxjava的Android权限检查)

compile     :"com.tbruyelle.rxpermissions2:rxpermissions:0.9.5@aar"

11>  大牛封装的Okgo框架(包含上传下载的封装)

compile     :"com.lzy.net:okgo:3.0.4"
compile     :"com.lzy.net:okserver:2.0.5"

12>  logger Android日志包

compile     :"com.orhanobut:logger:2.1.1"

13> 进度条框架numberprogressbar

compile     :"com.daimajia.numberprogressbar:library:1.4@aar"

14>图片压缩框架compressor

compile     :"id.zelory:compressor:2.1.0"

15>圆形图片框架circleimageview

compile     :"de.hdodenhof:circleimageview:2.2.0"

16>郭霖大神的litepal,数据库查询

compile     :"org.litepal.android:core:1.6.0"

17>伸缩放大图片组件photoview

compile     :"com.github.chrisbanes.photoview:library:1.2.4"

18>显示空的控件布局emptyview

compile     :"com.github.santalu:emptyview:1.0.4"

19>封装一个基类的baseadapter 适配器

compile     :"com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.31"

20>显示空的控件布局emptyview

compile     :"com.github.santalu:emptyview:1.0.4"

21>监控APP异常的腾讯bugly

compile     :"com.tencent.bugly:crashreport:latest.release"

22>数据库框架greendao

compile     :"org.greenrobot:greendao:3.2.2"

23>Android滚动图片展示banner

compile     :"com.youth.banner:banner:1.4.9"

24>标签根据大小换行的flexbox

compile     :"com.google.android:flexbox:1.0.0"

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值