在华为Android7.0 中设置Window透明后 popupwindow 一直闪烁
添加Flag
Window window = mActivity.getWindow();
WindowManager.LayoutParams lp = window.getAttributes();
window.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
lp.alpha = i;
window.setAttributes(lp);