/**
* 设置添加屏幕的背景透明度
* @param bg_alpha 1.0f 全透明没有阴影
*/
public void backgroundAlpha(float bg_alpha){
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.alpha = bg_alpha; //0.0-1.0
getWindow().setAttributes(lp);
}
tip;只需要在show popupwindow的时候调用即可.