WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();
lp.alpha = 0.8f; //0.0-1.0
dialog.getWindow().setAttributes(lp);
让dialog半透明
最新推荐文章于 2018-09-04 15:37:50 发布
WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();
lp.alpha = 0.8f; //0.0-1.0
dialog.getWindow().setAttributes(lp);