I wanted to create Custom Dialog like the following image which can be called from an activity while performing validations.
The Custom Dialog should be a separate class.

How can I achieve the following the custom dialog. I gave gone through the following url
http://developer.android.com/guide/topics/ui/dialogs.html
but unable to get a clear idea on how should I create the below alert .
-
How can I create my own header “Alert Info” with a background color & an icon before the text “Alert Info”
-
I wanted to also control the transparency of the alert (90 % transparency)
Is it possible to achieve % transparency on Android -
How to provide the listeners to the buttons Ok & Cancel.
Any sample code with layout xml handling the above requirements will be helpful.
Kindly provide with a sample code/suggestions.
You just need to create a custom layout for the dialog then wire up the controls manually.. this should get you started.
customdialoglayout.xml
Set the custom layout to the dialog after initializing..
To wire up your handlers you will have to do something to the effect of..
The XML I posted is truncated just as an example, additional custom styling will be needed to achieve the desired look and of course replace the ellipses with the actual attributes that you want, but as you can see what you want to accomplish is fairly simple.