I have put an image in as the background of my android application with the following line of code:
android:background=\"@drawable/background\"
You can set the alpha property:
android:alpha="0.4"
via code :
yourView.setAlpha(0.5f);
only the background :
yourView.getBackground().setAlpha(120); // here the value is an integer not float