Android full screen dialog appears transparent and in the wrong position
问题 I'm trying to add a dialog to my android app which is full screen on small devices (e.g. mobile phone) but a standard dialog on large devices (e.g. tablets). This follows the logic laid out in the material design specification. Using the official android dialog guide, using a DialogFragment, I end up with a transparent dialog that overlays the action bar: Below is the source code. main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android=