三句代码创建全屏Dialog或者DialogFragment:带你从源码角度实现 - 掘金 <item name="android:windowIsFloating">false</item> 为true右边距