decor view (containing the standard window frame/decorations and the client's content inside of that), which can be added as a window to the window manager. Viewroot: root view 具体指的是什么,如何解释?
Retrieve the top-level window decor view (containing the standard window frame/decorations and the client's content inside of that), which can be added as a window to the window manager. Note that calling this function for the first time "locks in" various window characteristics as described in setContentView(View, android.view.ViewGroup.LayoutParams).
ViewRoot中有IWindowSession和IWindow用来和window manger打交道和接收window manager传过来的消息,消息传过来后ViewRoot分发给decor view,再由decor view进行分发
我看到的一些事件分发如key, touch都是viewroot直接分发给view,需要仔细看下
Note that calling this function for the first time "locks in" various window characteristics as described in setContentView(View, android.view.ViewGroup.LayoutParams).