android 常用第三方框架导入

本文详细介绍了在Android开发中常用的第三方库的导入与使用,包括RecycleView、Glide图片加载库、EventBus事件总线、Fastjson数据解析、OkHttp网络请求库,以及SwipeMenu、WebViewBridge、PtrClassicFrameLayout、SwipeToLoadLayout等组件的集成。同时,还涵盖了沉浸式状态栏、时间选择器、图片选择器、SnackBar和自定义流式布局等多个实用功能的实现方法和开源项目推荐。

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

1:recycleview

   compile 'com.android.support:recyclerview-v7:25.1.1'

2:glide

    compile 'com.github.bumptech.glide:glide:3.7.0'

3:EventBus

    compile 'org.greenrobot:eventbus:3.0.0'

4:fastjson

    compile 'com.alibaba:fastjson:1.2.24'

5:okhttp3

    compile 'com.squareup.okhttp3:okhttp:3.5.0'

6: 侧滑删除SwipeMenu

 compile 'com.baoyz.swipemenulistview:library:1.3.0'

7: okhttp3持久化:cookieJar

 compile 'com.github.franmontiel:PersistentCookieJar:v1.0.1'

8:webviewBridge(JS交互):

repositories {
    maven { url "https://jitpack.io" }
}
    compile 'com.github.lzyzsd:jsbridge:1.0.4'

9: 原生okhttp:

    compile 'com.squareup.okhttp:okhttp:2.4.0'
    compile 'com.squareup.okio:okio:1.5.0'

10: design包

    compile 'com.android.support:design:25.2.0'

11: PtrClassicFrameLayout包(刷新样式)

allprojects {
    repositories {
        jcenter()
        mavenCentral();
        maven {
            url 'https://oss.sonatype.org/content/repositories/snapshots'
        }
    }
}
    compile 'in.srain.cube:ultra-ptr:1.0.11'

12: SwipeToLoadLayou(刷新和加载样式)

     compile 'com.github.Aspsine:SwipeToLoadLayout:1.0.4'
repositories { 
maven { url “https://jitpack.io” } 
}

13:IOS滚动效果

    compile 'me.everything:overscroll-decor-android:1.0.4'

14:沉浸式状态栏
方法1:

compile 'com.githang:status-bar-compat:latest.integration'
StatusBarCompat.setStatusBarColor(this, color, lightStatusBar);

方法2:https://blog.youkuaiyun.com/lmq121210/article/details/80830701

15:仿IOS时间选择器

compile 'com.contrarywind:Android-PickerView:3.2.6'

github网址:https://github.com/Bigkoo/Android-PickerView

16:仿微信图片选择器

compile 'com.commit451:PhotoView:1.2.4'
compile 'com.isseiaoki:simplecropview:1.0.13'
compile 'com.yongchun:com.yongchun.imageselector:1.1.0'

17:顶部弹出MySnackBar

 compile 'com.trycatch.android:mysnackbar:1.2.2'

github网址:https://github.com/guoyoujin/MySnackBar

18:FlexBoxLayout (能实现流式布局)

compile 'com.google.android:flexbox:0.2.3'

github官网:https://github.com/google/flexbox-layout
csdn网址:http://blog.youkuaiyun.com/u012702547/article/details/52293593
自定义流式布局:http://blog.youkuaiyun.com/lmq121210/article/details/72477648

19:slidingTabLayout 封装TAB

compile 'com.flyco.tablayout:FlycoTabLayout_Lib:2.0.2@aar'

20 :Reforfit

    //Reforfit的导入
    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
    //Reforfit的GSON解析
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
    //Log打印日志
    implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'

Demo地址:https://download.youkuaiyun.com/download/lmq121210/10503575

21:新手引导Guide
项目总Gradle添加

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

项目app中添加

compile 'com.github.Sbingo:GuideView:1.1.0'

项目作者:https://blog.youkuaiyun.com/recordgrowth/article/details/60783037

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值