![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
sinat_35572837
这个作者很懒,什么都没留下…
展开
-
Android基本Thread的使用——待完善
HandlerThread IntentService 线程池 ThreadPoolExecutor RxJava AsyncTask原创 2019-10-12 09:32:37 · 115 阅读 · 0 评论 -
命名规范
参考 https://source.android.google.cn/setup/contribute/code-style https://google.github.io/styleguide/javaguide.html 遵循字段命名规范 非公共且非静态字段的名称以 m 开头。 静态字段的名称以 s 开头。 其他字段以小写字母开头。 公共静态 final 字段(常量)要全部大写并用下...原创 2020-12-12 12:01:02 · 147 阅读 · 0 评论 -
ContentProvider内容提供者——待完善
https://developer.android.google.cn/guide/topics/providers/content-providers?hl=zh_cn原创 2020-12-12 11:58:59 · 78 阅读 · 0 评论 -
BroadcastReceiver的基本使用——待完善
官方文档https://developer.android.google.cn/topic/performance/background-optimization?hl=zh_ch BroadcastReceiver 注册 接收 发送 广播的三种发送方式 该sendOrderedBroadcast(Intent, String) 方法一次将广播发送到一个接收器。当每个接收器轮流执行时,它可以将结果...原创 2020-12-12 11:57:46 · 101 阅读 · 0 评论 -
Service——待完善
AIDL public abstract class Service extends ContextWrapper implements ComponentCallbacks2 ContextWrapper是Context的包装类 /** * Proxying implementation of Context that simply delegates all of its calls t...原创 2019-12-11 21:17:35 · 123 阅读 · 0 评论 -
View基础知识和视图绘制基本原理——待完善
View的位置 width=right-left height=bottom-top Left=getLeft() translationX translationY X Y getX getY TouchSlop系统能识别出的最小滑动距离 VelocityTracker 速度追踪 //在View的onTouchEvent方法中追踪当前点击事件速度 VelocityTracker ve...原创 2019-12-02 21:05:00 · 122 阅读 · 0 评论 -
Activity——待完善
生命周期 启动模式 显式和隐式调用 工作过程 Fragment生命周期 启动模式 AndroidMenifest.xml Android:launchMode=“singleTask” Intent intent =new Intent(); intent.setClass(MainActivity.this, SecondActivity.class); intent...原创 2019-11-14 21:20:44 · 141 阅读 · 0 评论