我在Popup的构造方法里 setBackgroundColor(Color.parseColor("#70000000"));
完整如下
public XXXPopup(Context context) {
super(context);
setOutSideTouchable(true);
setOutSideDismiss(false);
setBackPressEnable(false);
setClipChildren(false);
setBackgroundColor(Color.parseColor("#70000000"));
setPopupGravity(Gravity.CENTER);
}
然后在某段动画结束后想移除背景,使用
setBackgroundColor(Color.TRANSPARENT);
setBackgroundColor(0);
setBackground(0);
均无法使背景消失
我在Popup的构造方法里 setBackgroundColor(Color.parseColor("#70000000"));
完整如下
public XXXPopup(Context context) {
super(context);
setOutSideTouchable(true);
setOutSideDismiss(false);
setBackPressEnable(false);
setClipChildren(false);
setBackgroundColor(Color.parseColor("#70000000"));
setPopupGravity(Gravity.CENTER);
}
然后在某段动画结束后想移除背景,使用
setBackgroundColor(Color.TRANSPARENT);
setBackgroundColor(0);
setBackground(0);
均无法使背景消失