android
不为人知的秘密
岁不寒无以知松柏,事不难无以知艰辛。
展开
-
面试题
https://www.jianshu.com/p/feb9584b492chttps://github.com/android-exchange/Android-Interviewhttps://github.com/xiangjiana/Android-MShttps://github.com/Ellen2018/AndroidFaceInterviewhttps://github.com/Moosphan/Android-Daily-Interviewhttps://github.原创 2020-05-23 13:04:29 · 190 阅读 · 0 评论 -
Glide源码分析(一)
Glide使用方式: Glide.with(vh.imageView) .load(image.link) .into(vh.imageView);Glide with()方法: public static GlideRequests with(@NonNull View view) { return (GlideRequests) Glid...原创 2018-04-07 21:28:08 · 440 阅读 · 0 评论 -
Glide源码分析(二)
Glide源码分析(一)Glide load()方法:GlideRequest类 public GlideRequest<Drawable> load(@Nullable String string) { return (GlideRequest<Drawable>) super.load(string); }RequestManager类: public ...原创 2018-04-08 02:56:38 · 394 阅读 · 0 评论 -
okhttp源码分析(一)
源码地址:https://github.com/square/okhtt实例:okHttpClient = new OkHttpClient.Builder() .connectTimeout(5*1000, TimeUnit.MILLISECONDS) //链接超时 .readTimeout(10*1000,TimeUnit.MILLISE...原创 2018-04-04 20:14:29 · 272 阅读 · 0 评论 -
okhttp源码分析(二)
okhttp源码分析(一)各种拦截器分析:1. 日志拦截器HttpLoggingInterceptor,在源码okhttp-logging-interceptor下,单独一个工程: @Override public Response intercept(Chain chain) throws IOException { Level level = this.level; Req...原创 2018-04-05 11:22:19 · 230 阅读 · 0 评论 -
okhttp源码分析(三)
okhttp源码分析(一)okhttp源码分析(二)接着上一章分析request.body().writeTo(); public @Nullable RequestBody body() { return body; }public abstract class RequestBody { ............ /** Returns a new request bod...原创 2018-04-06 13:17:39 · 560 阅读 · 0 评论 -
okhttp源码分析(四)
okhttp源码分析(一)okhttp源码分析(二)okhttp源码分析(三)okhttp响应流程:public final class ConnectInterceptor implements Interceptor { public final OkHttpClient client; public ConnectInterceptor(OkHttpClient client) {...原创 2018-04-06 21:34:21 · 279 阅读 · 0 评论