apply Window Insets
fun View.applyWindowInsets(left: Boolean = false, top: Boolean = false, right: Boolean = false, bottom: Boolean = false)
This should be used to apply inset to the view to support correct edge to edge behaviour
Parameters
left
Indicates if left inset should be applied
top
Indicates if top inset should be applied
right
Indicates if left inset should be applied
bottom
Indicates if left inset should be applied