一句话:
dialog.getWindow().setDimAmount(0f);
下面的内容来自网络
Window window= dialog.getWindow();
//去除系统自带的margin
window.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
//设置dialog在界面中的属性
window.setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
//背景全透明
window.setDimAmount(0f);
暂无评论
要发表评论,您必须先 登录