![]() ![]() There are only three ways that Windows Manager commonly uses, that is, adding/updating/deleting View s. Windows needs to operate through Windows Manager. Windows and View establish connections through ViewRootImpl, so Windows does not exist. A Windows corresponds to a View and a ViewRootImpl. The application level of Windows is 1-99, the sub-Windows level is 1000-1999, and the system Windows is 2000-2999. The level Congress covers the small level. Type denotes the type of Windows, which can be divided into application Window (Activity), child Window (can not exist alone, must be attached to the parent Window, Dialog, etc.), system Window (need to declare permissions to create, Toast, etc.). FLAG_SHOW_WHEN_LOCKED: Opening allows Window s to be displayed on the lock screen interface.The current area is handled by itself, which is usually set up and very important. FLAG_NOT_FOCUSABLE: Click events in the area outside this Window are passed to the underlying Windows.FLAG_NOT_TOUCH_MODAL denotes that there is no need to get focus or receive various inputs, and the final event is passed directly to the underlying Window with focus.addView(mFloatingButton,mLayoutParams) įlags represent Window s attributes. The interaction between Windows Manger and Windows Manger Service is an IPC process. The concrete implementation of Windows is located in Windows Manager Service. Windows Manager is the entrance to access Windows. Its concrete implementation is PhoneWindow. WindowĪll views in Android, whether they are Activity, Dialog or Toast, are presented through Windows, and their views are attached to Windows, which is actually the direct manager of View. Windows and Windows Manager in Android I. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |