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
Android12默认支持在Activity和Dialog中可以实现高斯模糊效果,相关api如下:
设置窗口本身模糊:
设置背景模糊:
结合View使用:
// 大致代码如下: View decorView = getWindow().getDecorView(); decorView.setRenderEffect(RenderEffect.createBlurEffect(25F, 25F, Shader.TileMode.CLAMP)); View popContentsView = Layoutinfalter.from(context).inflate(R.layout.xxx, null); popwindow.setContentView(popContentsView );
The text was updated successfully, but these errors were encountered:
可以,下个版本看看好不好弄
Sorry, something went wrong.
No branches or pull requests
Android12默认支持在Activity和Dialog中可以实现高斯模糊效果,相关api如下:
// 大致代码如下:
View decorView = getWindow().getDecorView();
decorView.setRenderEffect(RenderEffect.createBlurEffect(25F, 25F, Shader.TileMode.CLAMP));
View popContentsView = Layoutinfalter.from(context).inflate(R.layout.xxx, null);
popwindow.setContentView(popContentsView );
The text was updated successfully, but these errors were encountered: