![]() ![]() These windows are system-level windows, do not belong to any application, and have nothing to do with the activity. ![]() The second is the window of the public interface: such as the recently run dialog box, the shutdown dialog box, the status bar drop-down bar, the lock screen interface, and so on. The window is added by calling getDecorView() to get the mDecorView and calling WindowManager.addView() to add the View to the WindowManager. PhoneWindow is just a window wrapper class. The application-related window representation class is PhoneWindow and Window, and PhoneWindow inherits from Window, and does some optimization work for the mobile phone screen. In the same activity, the main window, the dialog box, and the Menu window are associated by the activity. The first is the application window: an activity has a main window, the pop-up dialog also has a window, and the Menu menu is also a window. In the android application framework, there are two main types of windows: For Android applications, this interaction is transparent, and the application cannot perceive the existence of WindowManagerService. On the client side, it does not directly interact with the WindowManagerService, but directly interacts with the local object WindowManager, and then the WindowManager completes the interaction with the WindowManagerService. The client is responsible for requesting the creation of the window and the use of the window, the server to complete the window maintenance, the window display, and so on. The whole window system is divided into two parts: the server and the client. In the Android system, from a design point of view, the window management system is based on the C/S mode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |