Keep AlertDialog default layout params using custom window background
问题 I need a dialog with custom background color and rounded corners. How can I keep default layout params using custom window background for AlertDialog? Currently, my dialog has smaller left-right margin than in regular dialog. Also, dialog buttons such as positive and neutral have more shift from the edge of dialog. <style name="DialogStuffTheme" parent="Theme.AppCompat.Light.Dialog.Alert"> <item name="android:windowBackground">@drawable/bg_custom</item> <item name="android