Window, ViewRootImpl, Surface, Canvas, View, DecorView, ViewTreeObserver, TouchEvent, SurfaceView - Medium2
Window, ViewRootImpl, Surface, Canvas, View, DecorView, ViewTreeObserver, TouchEvent, SurfaceView - Medium2
// ...
}
ViewGroup mContentParent;
DecorView is the inner class of PhoneWindow and is the root container in the View
For example: A DecorView contains a window background that can be drawn, and
calling the getWindow().setBackgroundDrawable(Drawable drawable) method from your
Activity changes the window’s background.
mContentParent stores the View in which the contents of the window are placed.
Those are essentially the root container for the UI elements that we add to our
Activity.
https://medium.com/@MrAndroid/android-window-basic-concepts-a11d6fcaaf3f 2/33