请你知道如何实现在Android的这种效果(模糊的背景)?
please do you know how to achieve this effect (blur on the background) in Android?
我的HTC野火做到这一点时,即将被关闭。
My HTC WildFire does this when is about to be turned off
我用Google搜索机器人模糊背景,发现这个博客帖子。基本上是:
I googled for "android blur background" and found this blog post. Basically:
dialog = new AlertDialog.Builder(this). /*... setTitle and so on ...*/ ;
WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();
lp.dimAmount=0.0f; // this sets the amount of darkening
dialog.getWindow().setAttributes(lp);
dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
侨侨:)