I want to create an android screen like this- The background image is faded and has a linear layout over it which gives the image a faded look.
Asked
Active
Viewed 1,286 times
-1
-
1Give `image` as `background` to `ViewGroup` and set its opacity using `alpha` – Logic Jun 03 '15 at 10:36
-
1Make image as background to your layout, and give it alpha property, it will work – Gulnaz Ghanchi Jun 03 '15 at 10:37
-
no, alpha will not work – pskink Jun 03 '15 at 10:39
-
Edit it with some image editor. Gaussian blur + black filter. Then add it as a background in the layout. – Nacho Ramos Sánchez Jun 03 '15 at 10:43
-
1http://stackoverflow.com/questions/6795483/create-blurry-transparent-background-effect – Chandrakanth Jun 03 '15 at 10:44
2 Answers
1
It's basically a blurred image background. You can use tools like Photoshop to add the blur effect or if you are looking for dynamic blurs, you could use the StackBlur library.
Simply initialize with the image that you want to blur,
_stackBlurManager = new StackBlurManager(getBitmapFromAsset(this, "yourFile.png"));
And set the blur radius,
_stackBlurManager.process(progress*5);
And then set the blurred as a background for your layout or ImageView
.
_imageView.setImageBitmap(_stackBlurManager.returnBlurredImage() );

siriscac
- 1,699
- 12
- 21
1
That is not a faded Image but a blurred image. Changing alpha will fade image not blur it.
This might help

Community
- 1
- 1

Rishabh Singh Bisht
- 150
- 8