I have little doubt about the transparent AlertDialog window in android. I created an alert dialog using AlertDialog.builder on the surface of the camera, but I want the Transparent alert dialog to be possible. Please help me
Relations Raj
Use thisThe code is as follows
Dialog mDialog = new Dialog(mContext, android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);
Answer taken from a similar answer here
Yes it is possible. I believe that you can do this by creating a custom alert dialog:
http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
you can then set the background of your custom dialog box like this:
this.getWindow().setBackgroundDrawableResource(R.drawable.transparent);
(where "R.drawable.transparent" is a reference to the color "# 00000000")