让dialog半透明

    WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();
    lp.alpha = 0.8f; //0.0-1.0
    dialog.getWindow().setAttributes(lp);

你可能感兴趣的:(让dialog半透明)