源码分析
tjoven
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
源码分析 setContentView() 布局加载机制
1,setContentView 分析: 1.1 Activity源码: /** * Set the activity content from a layout resource. The resource will be * inflated, adding all top-level views to the activity. * *原创 2017-03-31 14:41:09 · 327 阅读 · 0 评论 -
Application初始化源码分析
1,app的入口ActivityThread.main();2,App主线程的消息循环是在ActivityThread初始化的时候,就已经创建消息循环了,所以在主线程里面创建Handler不需要指定Looper,而如果在其他线程使用Handler,则需要单独使用Looper.prepare()和Looper.loop()创建消息循环。 public static void main(Strin转载 2017-08-24 09:29:28 · 379 阅读 · 0 评论 -
context 详解
借鉴:Android应用Context详解及源码解析 http://www.androidchina.net/3853.html http://www.jianshu.com/p/f24707874b04 1,Context介绍 源码: /** * Interface to global information about an application environme原创 2017-04-07 12:45:17 · 576 阅读 · 0 评论 -
Activity.startActivity源码分析
参考: ,概述startActivity分为两种: 一种是从桌面的icon进入(不包括app后台的情况),称之为启动app; 另一种是app内部的页面跳转,称之为启动activity;转载 2017-08-26 15:34:37 · 311 阅读 · 0 评论 -
Handler异步消息处理机制 总结
参考:http://blog.youkuaiyun.com/yanbober/article/details/45936145 1,概述 消息处理机制中,主要有这么几个概念,handler、looper、message、messageQueue。 在handler的构造函数中,对looper、messageQuenu进行初始化 public Handler(Callback callback,原创 2017-04-24 21:47:31 · 409 阅读 · 0 评论 -
LayoutInflater 分析
1,获取LayoutInflater 对象 2,LayoutInflater.inflate()方法参数 3,layout_width和layout_height的真实含义 4,布局优化 http://blog.youkuaiyun.com/yanbober/article/details/45970721转载 2017-03-31 14:57:29 · 335 阅读 · 0 评论
分享