android 用第三方类库,【安卓相关】个人常用第三方类库 ( 持续更新 )

这里收集一些自己平时开发中必备,或者说常用的类库吧。

build.gradle (Moudle:app)

apply plugin: 'com.android.application'

apply plugin: 'org.greenrobot.greendao' // 添加插件,如果不用greenDao,可忽略

android{

// greenDao 一些配置,如果不用greenDao 可以忽略

...

greendao {

schemaVersion 1 //当前数据库版本

targetGenDir 'src/main/java/com/convenience/people/dao' //指定生成代码的目录

daoPackage //生成代码到具体包下

}

...

}

// 以上要是不用 greenDao 可以忽略

dependencies {

// Glide 著名图片加载库

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

annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

// okHttp 著名网络请求库

implementation"com.squareup.okhttp3:okhttp:4.8.1"

// 事件总线 著名组件通信库

implementation 'org.greenrobot:eventbus:3.1.1'

// greenDao 关系模型数据库,简化 数据库编程

implementation 'org.greenrobot:greendao:3.3.0'

// 轮播图

implementation 'com.github.xiaohaibin:XBanner:androidx_v1.1.0'

// 简化 RecyclerView 编程

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

// 底部菜单栏,含小红点,但不支持中间圆角突出 ( 或者说不规则图形 )

implementation 'com.ashokvarma.android:bottom-navigation-bar:2.2.0'

// md 中一些组件吧

implementation 'com.google.android.material:material:1.3.0-alpha02'

// 这个也是轮播图,但是画廊形式的 ,也就是左右两边可以看到前一张轮播图和后一张轮播图的边缘

implementation 'com.github.lzjin:ViewPagerGallery:1.3'

}

build.gradle (Project:)

buildscript {

repositories {

google()

jcenter()

mavenCentral()

maven { url 'https://jitpack.io' }

}

dependencies {

...

classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' // greenDao 插件,不用 greenDao 可以忽略

...

}

}

allprojects {

repositories {

google()

jcenter()

mavenCentral()

maven { url 'https://jitpack.io' }

}

}

...

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值