IBinder appToken, String appName,
boolean hardwareAccelerated) {
// activity把token传进来...= null) {
// parentWindow是 WindowManagerImpl的成员变量mParentWindow;
// 对于 activity来说...有关的Evnet,layout,draw,都在底层产生后通过WMS->ViewRootImpl传递给view
root = new ViewRootImpl(view.getContext...第六步
接着看一下android.view.ViewRootImpl#setView:
public void setView(View view, WindowManager.LayoutParams...上面说过事件是通过WMS传递给ViewRootImpl,然后传递给View,Activity, 具体事件在ViewRootImpl的分发过程, 可以看这篇博客:Android中MotionEvent的来源和