Android 12 system source code_WindowInsets (1) Introduction to WindowInsets related classes and functions

1. What is WindowInsets?

The source code of WindowInsets is interpreted as a series of interpolation collections of Window Content, which can be understood as different types of window decoration areas, such as an Activity that needs to be vacated relative to the mobile phone screen to make room for system windows such as StatusBar, Ime, and NavigationBar , which is specifically expressed as the required width and height of the area.
WindowInsets
WindowInsets include three categories: SystemWindowInsets, StableInsets, WIndowDecorInsets

  • SystemWindowInsets: Under the full window, the area covered by navigationbar, statusbar, ime or other system windows
  • StableInsets: the area covered by the system UI under the full window
  • WIndowDecorInsets: system reserved property

二、InsetsState

2.1 Brief introduction of InsetsState

1. Save the state of all Insets in the system. It is the state describer and holds the window state that can generate Window Insets in the system. It mainly holds the following types of Insets:

frameworks/base/core/java/android/view/InsetsState.java

pu

Guess you like

Origin blog.csdn.net/abc6368765/article/details/130903283