Skip to content

二次setBackgroundColor不生效 #518

Description

@q88qaz

我在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);
均无法使背景消失

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions