android Activity设置背景为半透明的时候会显示上一个activity的内容
在弹出PopupWindow
时将当前Activity设置成了半透明:
WindowManager.LayoutParams lp = this.activity.getWindow().getAttributes();lp.alpha = 0.5f; //0.0-1.0this
在弹出PopupWindow
时将当前Activity设置成了半透明:
WindowManager.LayoutParams lp = this.activity.getWindow().getAttributes();lp.alpha = 0.5f; //0.0-1.0this