Created
October 7, 2023 11:43
-
-
Save ruthwikkk/a51ff85c42279b7d5168b001b065d526 to your computer and use it in GitHub Desktop.
Call this method on the update callback of AndroidView
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
AndroidView( | |
factory = { | |
BlurSurfaceView(context) | |
}, | |
modifier = Modifier | |
.size(180.dp), | |
update = { blurView -> | |
blurView.getBackgroundAndDrawBehind( | |
parent = rootView //Pass rootView here | |
) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment