We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在jetpack compose官方的与View交互AndroidView中,模糊效果不生效
AndroidView( modifier = Modifier .fillMaxSize() .border(width = 5.dp, color = Color.Red), factory = { context -> LinearLayout(context).apply { orientation = LinearLayout.VERTICAL layoutParams = ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT ) addView(ImageView(context).apply { setImageResource(R.drawable.ic_wallpaper) layoutParams = ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT ) }) addView(BlurView(context).apply { setupWith(viewGroup, getBlurAlgorithm(context)) .setFrameClearDrawable( context.getDrawable(R.drawable.ic_wallpaper) ) .setBlurEnabled(true) .setBlurRadius(30f) setOverlayColor(android.graphics.Color.RED) layoutParams = ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT ) }) } })
但是在传统的View中使用却没问题,我在哪里出错了呢,还是程序的bug?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在jetpack compose官方的与View交互AndroidView中,模糊效果不生效
但是在传统的View中使用却没问题,我在哪里出错了呢,还是程序的bug?
The text was updated successfully, but these errors were encountered: