Skip to content

Instantly share code, notes, and snippets.

@ruthwikkk
Created October 7, 2023 11:43
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 ruthwikkk/a51ff85c42279b7d5168b001b065d526 to your computer and use it in GitHub Desktop.
Save ruthwikkk/a51ff85c42279b7d5168b001b065d526 to your computer and use it in GitHub Desktop.
Call this method on the update callback of AndroidView
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