android view 的学习
2015-06-05 17:37
561 查看
Android中View绘制流程以及invalidate()等相关方法分析
/article/1390935.htmlAndroid中将布局文件/View添加至窗口过程分析 ---- 从setContentView()谈起
frameworks/base/core/java/android/view/Window.java //抽象类/**
* Abstract base class for a top-level window look and behavior policy. An
* instance of this class should be used as the top-level view added to the
* window manager. It provides standard UI policies such as a background, title
* area, default key processing, etc.
*
* <p>The only existing implementation of this abstract class is
* android.policy.PhoneWindow, which you should instantiate when needing a
* Window. Eventually that class will be refactored and a factory method
* added for creating Window instances without knowing about a particular
* implementation.
*/
PhoneWindow是唯一的这个抽象类的实现。 factory method是 Java工厂模式
frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
/**
* WindowManagerPolicy implementation for the Android phone UI. This
* introduces a new method suffix, Lp, for an internal lock of the
* PhoneWindowManager. This is used to protect some internal state, and
* can be acquired with either the Lw and Li lock held, so has the restrictions
* of both of those when held.
*/
启动一个应用,会调用addStartingWindow
相关文章推荐
- 【android】夜间模式简单实现
- Android中设置控件View显示、隐藏的不同属性的区别(VISIBLE,INVISIBLE,GONE)
- Android Studio调试功能使用总结【转】
- ADT、GitHub 导入项目到Android Studio
- 解决Android Studio的ADB not responding错误
- [Selenium] 搭建 Android WebDriver 环境
- Android Studio 调试跟踪代码
- Android26_ProgressBar及Dialog
- android如何让service不被杀死-提高进程优先级
- Android Studio 最常用的快捷键(待续)
- android基础-利用SharedPreferences实现用户记住密码和自动登录
- Android:横行滚动且隔行变色的ListView控件
- Android25_ActionBar
- Android Camera 视频循环录制
- Android_View(视图)绘制不同状态背景图片原理深入分析以及StateListDrawable使用详解
- Android4.4 Camera 摄像头镜像问题
- Android SDK 下载速度慢解决方法
- Android24_LruCache缓存处理及异步加载图片类的封装
- android performClick使用
- Android相对布局RelativeLayout详解