insets:
Insetsisandroidx.core.graphics.Insets, in pixels. They add to the system bars and cutout: measure from their edge, not from the screen’s.- They stay while the ad is shown, through resizes and rotations. If your controls change size while an ad is on screen, the ad keeps the insets it was shown with.
- The ad still has to fit at half its size or more. Insets and the container’s padding count against the space, so
ContainerTooSmallincludes them. - A full-screen pause ad ignores them: it fills the container, and its own controls keep clear of the edges.