The dialog looks like this. There is a layer behind the dialog itself about 10-20 pixels or so on each side. The theme I am using is Theme.Holo.Dialog
I tried creating a custom dialog with a transparent background, but that did not work:
<style name="CustomHoloDialog" parent="@android:style/Theme.Holo.Dialog">
<item name="android:background">@android:color/transparent</item>
</style>
Does anyone have any ideas on this?
If you want to style a Dialog then you have to use a ContextThemeWrapper
:
AlertDialog.Builder mBuilder = new AlertDialog.Builder(new ContextThemeWrapper(context, android.R.style.Theme_Holo_Dialog));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With