How to install blur / dim background

I am trying to set a blurry background image. Android studio projects are available. But I am using eclipse. So, does anyone help me set up a software blur image?

+4
source share
2 answers

Use this to set the opacity.

android:alpha="0.5"

OR

 yourView.getBackground().setAlpha(100);
+7
source

To set the transparency level of the view to make it dull

In the class class setAlpha (float alpha) , which is added to API level 11.

So, from API level 11 and after you can use this method in xml and the class too.

Use xml to android:alphaset the float value between0 to 1

11 ( ) .

NineOldAndroid

ViewHelper.setAlpha(View yourview,float alpha)

, , /.

+1

All Articles