android dialog box - setting opacity of background image
<p>I have a dialog box which appears on top of a SurfaceView. I would like the dialog box to have a custom image as its background, but I would also like to make the image slightly transparent so you can see underneath.</p>

<p>Any ideas on how I can change the opacity of the image?</p>

<p>gameover.xml:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/dialog"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/imagebackground"
    android:orientation="vertical" &gt;
</code></pre>

<p>creation code from parent activity</p>

<pre><code>    gameOverDialog = new Dialog(this);
    gameOverDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
    gameOverDialog.setContentView(R.layout.gameover);
</code></pre>
