EdgeToEdgeUtils

A util class that helps apply edge-to-edge mode to activity/dialog windows.

Functions

Link copied to clipboard
open fun applyEdgeToEdge(@NonNull window: Window, edgeToEdgeEnabled: Boolean)
open fun applyEdgeToEdge(@NonNull window: Window, edgeToEdgeEnabled: Boolean, @Nullable @ColorInt statusBarOverlapBackgroundColor: Integer, @Nullable @ColorInt navigationBarOverlapBackgroundColor: Integer)
Applies or removes edge-to-edge mode to the provided Window.
Link copied to clipboard
open fun setLightNavigationBar(@NonNull window: Window, isLight: Boolean)
Changes the foreground color of the navigation bars to light or dark so that the items on the bar can be read clearly.
Link copied to clipboard
open fun setLightStatusBar(@NonNull window: Window, isLight: Boolean)
Changes the foreground color of the status bars to light or dark so that the items on the bar can be read clearly.