Skip to content

Instantly share code, notes, and snippets.

@hiking93
Last active March 17, 2022 07:23
Show Gist options
  • Save hiking93/df1c65d552ea73d44537021f1433d253 to your computer and use it in GitHub Desktop.
Save hiking93/df1c65d552ea73d44537021f1433d253 to your computer and use it in GitHub Desktop.
Getting system window insets.
val systemWindowInsets = insets.getInsets(
WindowInsetsCompat.Type.systemBars() or WindowInsetsCompat.Type.ime()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment