Androd常用开源库

这篇博客汇总了Android开发中常用的开源库,包括Logger库提供强大的日志打印功能,Android System Bar Tint用于系统UI着色,Nine Old Androids支持老版本系统的动画,LogUtils方便调试,ImmersionBar简化沉浸式状态栏和导航栏的设置,FadingActionBar实现动作条的动态效果。还提到了joda-time进行时间处理,ZXing二维码扫描库,view-pager-transforms打造广告轮播效果,GreenDao作为数据库框架,以及gson用于JSON解析。

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

Androd常用开源库


 implementation 'com.orhanobut:logger:2.2.0'
  • Android System Bar Tint

Apply background tinting to the Android system UI when using KitKat translucent modes.
在使用KitKat半透明模式时,将背景颜色应用到Android系统UI中。
https://github.com/jgilfelt/SystemBarTint

implementation 'com.readystatesoftware.systembartint:systembartint:1.0.3'
compile 'com.nineoldandroids:library:2.4.0'
  • LogUtils
    支持直接打印数据集合,如List、Set、Map、数组等
    全局配置log输出
    个性化设置Tag
    准确显示调用方法、行,快速定位所在文件位置
    支持android系统对象Intent、Bundle打印
    提供release-no-op版本
    支持日志写入文件
    https://github.com/pengwei1024/LogUtils
implementation 'com.apkfuns.logutils:library:1.5.1.1'
//----日志写入到文件
compile 'com.apkfuns.log2file:log2file:1.0.0'
...
若本地已经依赖okio(如pokhttp)请排除
compile('com.apkfuns.log2file:log2file:1.0.0') {
    exclude module: 'okio'
}
implementation 'com.gyf.barlibrary:barlibrary:2.3.0'
compile 'com.github.manuelpeinado.fadingactionbar:fadingactionbar:3.1.2'

Java依赖包

implementation 'joda-time:joda-time:2.9.9'

二维码

implementation 'com.google.zxing:core:3.3.0'

轮播图框架

compile 'com.bigkoo:convenientbanner:2.0.5'
compile 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:1.2.32@aar'

NavigationView外层必须包一层DrawerLayout

数据库框架

  • ###GreenDao
    数据库
//1,
dependencies {
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
 }
//2,
apply plugin: 'org.greenrobot.greendao' // 添加应用依赖插件

//3,添加库文件
dependencies {
  compile 'org.greenrobot:greendao:3.2.2'
}
//4,初始化GreenDao配置
greendao {
    schemaVersion 1
    daoPackage 'xx.xx.db'//包名
    targetGenDir 'src/main/java'
    generateTests true
    targetGenDirTests 'src/androidTest/gen'
}

gson

json解析

implementation 'com.google.code.gson:gson:2.8.2'
compile 'com.google.code.gson:gson:2.8.2'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值