dialog 刘海屏、水滴屏、全面屏 全屏显示
// 关键代码
Window window = dialog.getWindow();
if (window != null) {
window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
window.getDecorView().setPadding(0, 0, 0, 0);
原创
2020-06-01 17:31:16 ·
2193 阅读 ·
2 评论