Skip to content

Instantly share code, notes, and snippets.

@ShwetaChauhan18
Last active January 30, 2020 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShwetaChauhan18/3ddb3bce5e2c9d1ac834c53f63d39300 to your computer and use it in GitHub Desktop.
Save ShwetaChauhan18/3ddb3bce5e2c9d1ac834c53f63d39300 to your computer and use it in GitHub Desktop.
ViewCompat.setOnApplyWindowInsetsListener(nav_view) { v, insets ->
// We'll set the views bottom padding to be the same
// value as the system gesture insets bottom value
v.updatePadding(
bottom = insets.systemWindowInsetBottom
)
// return the insets
insets
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment