In android development, Dialog are DialogFragment are very common UI parts. They come with a default border, with black or white background depending on android system version.
The default border, which is actually a drawable, is defined in android themes file.
Also, there are other dialog styles defined in android themes file.
1234567891011121314151617181920212223242526
<!-- Variant of {@link Theme_Dialog} that does not include a frame (or background).
The view hierarchy of the dialog is responsible for drawing all of
its pixels. -->
<style name="Theme.Dialog.NoFrame">
<item name="windowBackground">@color/transparent</item>
<item name="windowFrame">@null</item>
<item name="windowContentOverlay">@null</item>
<item name="windowAnimationStyle">@null</item>
<item name="backgroundDimEnabled">false</item>
<item name="windowIsTranslucent">true</item>
<item name="windowNoTitle">true</item>
<item name="windowCloseOnTouchOutside">false</item>
</style>
<!-- Default theme for alert dialog windows (on API level 10 and lower), which is used by the
{@link android.app.AlertDialog} class. This is basically a dialog
but sets the background to empty so it can do two-tone backgrounds. -->
<style name="Theme.Dialog.Alert">
<item name="windowBackground">@color/transparent</item>
<item name="windowTitleStyle">@style/DialogWindowTitle</item>
<item name="windowContentOverlay">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Large.Inverse</item>
<item name="textAppearanceListItem">@style/TextAppearance.Large.Inverse</item>
<item name="textAppearanceListItemSmall">@style/TextAppearance.Large.Inverse</item>
<item name="textAppearanceListItemSecondary">@style/TextAppearance.Small.Inverse</item>
</style>