Create Custom Dialog
<p>I wanted to create Custom Dialog like the following image which can be called from an activity while performing validations.</p>

<p>The Custom Dialog should be a separate class.
<img src="http://i.stack.imgur.com/DTMLU.png" alt="enter image description here"></p>

<p>How can I achieve the following the custom dialog. I gave gone through the following url</p>

<p><a href="http://developer.android.com/guide/topics/ui/dialogs.html" rel="nofollow">http://developer.android.com/guide/topics/ui/dialogs.html</a></p>

<p>but unable to get a clear idea on how should I create the below alert .</p>

<ol>
<li><p>How can I create my own header "Alert Info" with a background color &amp; an icon before the text "Alert Info"</p></li>
<li><p>I wanted to also control the transparency of the alert (90 % transparency)
Is it possible to achieve % transparency on Android</p></li>
<li><p>How to provide the listeners to the buttons Ok &amp; Cancel.</p></li>
</ol>

<p>Any sample code with layout xml handling the above requirements will be helpful.
Kindly provide with a sample code/suggestions.</p>
