
框架源码
文章平均质量分 94
lihuanxing
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
OkHttp源码解析(三)
上一篇我们讲到拦截器链,还讲解了前两个拦截器RetryAndFollowUpInterceptor和BridgeInterceptor,今天我们要讲解的是CacheInterceptor-----缓存拦截器。 首先我们看看它是如何使用缓存的: OkHttpClient okHttpClient = new OkHttpClient.Builder() .cache(new Cach...原创 2018-10-11 16:32:21 · 252 阅读 · 0 评论 -
OkHttp源码解析(一)
国庆期间,没怎么出去玩,就宅在家里面学习,所以就来研究了一下okhttp的源码。okhttp的github地址:https://github.com/square/okhttp 简单使用 OkHttpClient okHttpClient = new OkHttpClient.Builder().build(); Request request = new Request.Builder() ...原创 2018-10-06 14:38:42 · 311 阅读 · 0 评论 -
OkHttp源码解析(二)
上一篇讲到OkHttp的整体流程,但是里面有一个很重要的方法getResponseWithInterceptorChain还没有讲到,这个方法里面包括了整个okHttp最重要的拦截器链,所以我们今天来讲解一下。 Response getResponseWithInterceptorChain() throws IOException { // Build a full stack of int...原创 2018-10-07 15:22:28 · 274 阅读 · 0 评论 -
OkHttp源码解析(四)
今天讲解的是ConnectIntercepter这个拦截器,这个拦截器从名字上大概都可以知道就是用来获取网络连接的I/O流,建立连接。好,我们现在看看它的intercept()方法: @Override public Response intercept(Chain chain) throws IOException { RealInterceptorChain realChain = (Re...原创 2018-10-22 22:32:06 · 251 阅读 · 0 评论 -
属性动画源码分析
欢迎使用Markdown编辑器 好久没有写博客,因为本身工作的项目里面涉及到很多动画,而里面用到动画基本是属性动画,所以这几天就认真阅读了里面的源码进行分析,话不多说,开讲! 使用 ObjectAnimator animator = ObjectAnimator.ofFloat(view, "scaleX", 1.0f, 2.0f); animator.setDuration(2000); ani...原创 2019-05-01 23:50:23 · 259 阅读 · 0 评论