Answer the question
In order to leave comments, you need to log in
How to make transparent background for Alert Dialog?
For a regular Dialog, it's quite simple
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));
builder = new AlertDialog.Builder(new ContextThemeWrapper(this,android.R.style.Theme_Translucent_NoTitleBar_Fullscreen ));
<style name="AlertDialogCustom" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@null</item>
<item name="android:windowFrame">@null</item>
</style>
Answer the question
In order to leave comments, you need to log in
You can try using setContentView to set a view with a transparent background
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question