Last active
March 17, 2022 07:23
-
-
Save hiking93/f754d700fce027cde263b86333a5f713 to your computer and use it in GitHub Desktop.
Update padding with system window insets.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
binding.root.updatePadding( | |
left = systemWindowInsets.left, | |
right = systemWindowInsets.right, | |
) | |
binding.appBarLayout.updatePadding( | |
top = systemWindowInsets.top, | |
) | |
binding.recyclerView.updatePadding( | |
bottom = systemWindowInsets.bottom + 8f.dpToPxSize(v.context), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment