Q:

How to create a faded background from the main image?

I have a picture and I want the background to be a blur from the main image how can i do this? It's like this:
Image
And I tried using setAlpha but it just darkened the image.
Thank !

A:

You can set the alpha property of the ImageView something like this:
android:alpha="0.3" //set value between 0-1 of your choice

or by your code:
ImageView imageView = findViewById(R.id.yourimageViewID);
imageView.setAlpha(0.3f);

