![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android进阶
盐加三勺
一个刚出道的程序员
展开
-
Android进阶之路------View的工作原理(1)初识ViewRoot与DecorView
ViewRoot 与 DecorView了解View的工作原理之前,需要先了解ViewRoot与DecorView。ViewRoot对应于ViewRootImpl类,它是链接WindowManager和DecorView的纽带,最终通过ViewRootImpl类中的performTraversals方法完成View的三大流程:measure,layout,draw。那么ViewRoot是...原创 2019-03-21 17:40:47 · 327 阅读 · 0 评论 -
Android TV按键传递机制
Android TV按键传递机制Activity#dispatchKeyEvent() public boolean dispatchKeyEvent(KeyEvent event) { onUserInteraction(); // Let action bars open menus in response to the menu key prior...转载 2019-07-17 14:58:25 · 458 阅读 · 0 评论