Created
October 7, 2023 11:34
-
-
Save ruthwikkk/ab1bf6827a3892f0c9e23dcc2e99b766 to your computer and use it in GitHub Desktop.
Function to capture and draw background
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
fun getBackgroundAndDrawBehind(parent: ViewGroup) { | |
canvas?.save() | |
canvas?.let { | |
parent.draw(it) | |
} | |
canvas?.restore() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment