# androidx.core.view.insets

# androidx.core.view.insets

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/view/insets/package-summary "View this page in Java")

## Classes

|-------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ColorProtection](https://developer.android.com/reference/kotlin/androidx/core/view/insets/ColorProtection)       | A type of protection which draws the plain color.                                                                                                                                                                                                                  |
| [GradientProtection](https://developer.android.com/reference/kotlin/androidx/core/view/insets/GradientProtection) | A type of protection which draws the gradient color.                                                                                                                                                                                                               |
| [Protection](https://developer.android.com/reference/kotlin/androidx/core/view/insets/Protection)                 | An abstract class which describes a layer to be placed on the content of a window and underneath the system bar (which has a transparent background) to ensure the readability of the foreground elements (e.g., text, icons, ..., etc) of the system bar.         |
| [ProtectionLayout](https://developer.android.com/reference/kotlin/androidx/core/view/insets/ProtectionLayout)     | A layout drawing views under system bars, called[Protection](https://developer.android.com/reference/kotlin/androidx/core/view/insets/Protection)s, to ensure enough contrast between the system bars (such as status bar and navigation bar) and the app content. |