Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making linear layout translucent and blurry

So what I'm trying to do is create a translucent and blurry background to a linear layout.

Right now I have a linear layout thats completely black covering up some information that a key must be purchased to show, however I would like it to be blurred out, not completely covered as it ruins the layout, it needs to stay there, just blurry and illegible.

Thanks for your help!

like image 704
Samuel Avatar asked Jan 25 '12 02:01

Samuel


1 Answers

I'm not sure for Linearlayout. But for your activity you can try this.

getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND, WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

and use the setContentView(R.layout.your_layout); method

like image 111
san Avatar answered Sep 29 '22 21:09

san