(The Android system uses a UI architecture called Surface to provide the user interface for the user program. In the Android application, each activity component has one or more windows, and each window has a corresponding surface. With this Surface, you can use the program to highlight the UI of the window. After all, these surfaces will be submitted to the SurfaceFlinger, the surface management service, for formation, and finally displayed on the screen. Whether you are using programs or SurfaceFlinger, you can use hardware such as GPU to contrast the UI, so as to obtain a more popular UI. In the Android user program UI architecture, there is also an important service, WindowManagerService, which is responsible for the consistent management and coordination of all windows in the system, such as the size, orientation, opening and closing of the management window. This PPT talks about the surface mechanism of Android application, the relationship between Activity, Window and View, and the process of using the application, WindowManagerService and SurfaceFlinger to collaborate to end the UI foil. This material includes the following attachments:)