随笔分类 - android
摘要:build.gradle引入 implementation 'com.github.tbruyelle:rxpermissions:0.10.2'代码使用: RxPermissions rxPermissions = new RxPermissions(this);rxPermissions.req
阅读全文
摘要:一.为什么使用kotlin? 简洁: 大大减少样板代码的数量。 安全: 避免空指针异常等整个类的错误。 互操作性: 充分利用 JVM、Android 和浏览器的现有库。 工具友好: 可用任何 Java IDE 或者使用命令行构建 二.kotlin基本语法 1.程序入口(Kotlin 应用程序的入口点
阅读全文
摘要:Glide基本用法 Glide.with(this).load(url).into(imageView); 1.with() 得到RequestManager,调用Glide.with()方法用于创建一个加载图片的实例。 如果传入的是ApplicationContext,那么只有当应用程序被杀掉的时
阅读全文
摘要:StaggeredGridLayoutManager layoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);recyclerView.setLayoutManager(layout
阅读全文

浙公网安备 33010602011771号