fixLayout

open override fun fixLayout(view: View)(source)

Ensures the layout of the root view is correctly adjusted for the current configuration.

This may include applying padding for system bars, adjusting insets, or performing other layout updates. fixLayout should remain idempotent, as it can be called multiple times on the same view, such as during configuration changes (e.g. device rotation) or when the view is recreated.

Parameters

view

The root view to adjust.