Retrofit流程 Retrofit ↓ ServiceMethod CallAdapter工厂 Converter工厂 CallFactory ↓ OkHttpCall ↓ CallAdapter ↓ Converter ↓ callbackExecutor Retrofit简介 App应用程序通过Retro...
Android
Kotlin入门之领域特定语言 DSL
1 DSL 的基本概念 只是特定领域使用的语言 , 比如: HTML,Gradle,SQL等 特点 计算机编程语言 具有语言的表达能力 有限的表达能力 关注某个特定领域 2 小案例:HTML DSL开发 3 Gradle Kotlin 脚本编写 grou...
ListView设置适配器
ListView的中级使用 1 为ListView设置适配器 /** * Adapter */ class DoctorAdapter extends BaseAdapter { @Override public int getCount() { return appraisalInfoLst.size(); ...
Kotlin入门之高阶函数
一 高阶函数的基本概念 传入或者返回函数的函数 函数引用 ::println 带有Receiver的引用 pdfPrinter::println fun main(args: Array<String>) { args.forEach(::println) val helloWorld = He...
Kotlin入门之面向对象
一 面向对象-抽象类与接口(abstract,interface) 接口: 一个协议 抽象类: 一个半成品 二 子承父业-继承 2.1 继承(实现)语法要点 类的继承/实现语法,使用冒号 class D : A(),B,C 抽象类用冒号(:)继承 抽象...
Kotlin入门之程序结构
一 常量与变量(val,var) 1.1 什么是常量 常量 定义不可变的量 val = value,值类型 | 类似 Java的final | 不可能重复赋值 举例: val x = getX() // 运行时常量 const val x = 2 // 编译期常...
OkHttp网络库深入解析
一 Okhttp框架流程 OkHttpClient 单一实例 Request 封装请求报文信息,url,请求头 ↓ RealCall 一个实际请求对象 ↓ Dispatcher 分发器 根据上一步接收的同步/异步请求进行分发 会将RealCall封装进来 ↓...
Kotlin入门之数据类型
一 Boolean数据类型 val aBoolean: Boolean = true val anotherBoolean: Boolean = false 二 Number数据类型 具体如图 val anInt: Int = 8 val anotherInt: Int = 0xFF // 255 val moreInt...
Kotlin入门之简介
一 Kotlin是什么 Kotlin就是一门可以运行在Java虚拟机,Android,浏览器上的静态语言.它与Java100%兼容,如果你对Java非常熟悉,那么就会发现Kotlin除了自己的标准库之外,大多仍然使用经典的Java集合框架. 二 前置...
AppbarLayout的简单用法
转载: https://www.jianshu.com/p/bbc703a0015e
Ijkplayer的学习使用
参考 https://github.com/Bilibili/ijkplayer https://blog.csdn.net/huaxun66/article/details/53401231 https://blog.csdn.net/sunchaohui5741/article/details/80520066 https://blog.csdn.net/qwe...
FloatingActionButton 悬浮按钮
转载: https://blog.csdn.net/chen_xi_hao/article/details/74347023 https://www.jianshu.com/p/5328b2eee827
报错: Make sure the Cursor is initialized correctly before accessing data from it
详细错误是: java.lang.IllegalStateException: Couldn't read row 0, col 2 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. 出现这个原因是因为我在获取C...
节操播放器JieCaoVideoPlayer使用
转载地址:https://github.com/lipangit/JiaoZiVideoPlayer 参考视频:http://ke.atguigu.com/course/149/learn#lesson/1978 源码下载: https://github.com/wxyass/JiecaoVideo
报错: Gradle添加第三方库报异常
今天在Gradle中添加一个第三方库,一直同步不通过,报下面这个异常: Error:Execution failed for task ':example:processDebugManifest'. > Manifest merger failed : Attribute meta-data#android.support.V...
BaseRecyclerViewAdapterHelper库的基本使用方法
Github引入 https://github.com/CymChad/BaseRecyclerViewAdapterHelper 使用文档 http://www.jianshu.com/p/b343fcff51b0 具体使用步骤: 1 创建bean对象类 implements MultiItemEntity public class Lis...
使用Flowlayout流式布局
转载: FlowLayout 的Github地址 FlowLayout 的Fork地址 Demo下载 FlowLayout A FlowLayout for Android, which allows child views flow to next row when there is no enough space. The spacing be...
图片加载框架Glide最全解析
参考: http://blog.csdn.net/guolin_blog/article/details/53759439 现在Android上的图片加载框架非常成熟,从最早的老牌图片加载框架UniversalImageLoader,到后来Google推出的Volley,再到后来的新兴军G...
Android常用相关权限
一般app常用的权限 <!--打电话 --> <uses-permission android:name="android.permission.CALL_PHONE"/> <!-- 这个权限用于进行网络定位 --> <uses-permission android:name="android.p...
报错:adb server version(39)doesn’t match this client(40)
使用 Windows + Android studio + Genymotion 模拟器 的 开发方式。 报错:adb server version(39)doesn't match this client(40);killing… 错误原因: 因更新了SDK导致 。启动Genymotion模拟器时遇到版...