Dialog activity matching parent's width

Sat Sep 22 2018

Extend your theme from .Dialog.Alert

xml
|
<style name="YOUR_THEME_NAME" parent="@style/Theme.AppCompat.Light.Dialog.Alert"> <!--your theme here--> </style>

Do not extend your theme from .Dialog, if you want your dialog to match parent/window's width.

xml
|
<style name="YOUR_THEME_NAME" parent="@style/Theme.AppCompat.Light.Dialog.Alert"> <!--your theme here--> </style>