Android源码分析
文章平均质量分 85
不明真相的吃瓜攻城狮
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android源码解析:LayoutInflater源码解析
(一)使用LayoutInflater我们通常使用LayoutInflater.from(Context)来获取LayoutInflater服务。 /** * Obtains the LayoutInflater from the given context. */ public static LayoutInflater from(Context context...原创 2018-02-19 00:02:30 · 353 阅读 · 0 评论 -
Android源码解析:AlertDialog和WindowManager源码解析
(一)AlertDialog的实现模式AlertDialog的实现模式使用了Builder模式,通过Builder对象来组装Dialog的各个部分。AlertController用于存储Builder成员变量中的各个参数。AlertDialog可以设置title,message,button等参数,这些参数存储在AlertController.AlertParams的成员变量P中,AlertCon...原创 2018-02-20 23:16:07 · 781 阅读 · 0 评论 -
Android源码解析:Intent实现原理
(一)Intent查找与匹配Android使用Intent进行组件,进程之间的通信和跳转。Intent具有隐式Intent和显式Intent两种,Android系统通过PackageManagerService来进行系统组件的维护。系统启动之后会注册各种系统服务,其中就包括PackageManagerService。在启动之后,PMS会扫描已安装的apk目录,解析apk包下的AndroidMani...原创 2018-02-22 15:44:40 · 2645 阅读 · 0 评论
分享