Skip to content

连续显示XToast,the specified child already has a parent. You must call removeView() on the child's parent first. #1

@wangjkjuststart

Description

@wangjkjuststart

Queue队列,show的时候,队列取出toast1对象ddView到ViewGroup,并没有及时把toast1移除队列,在hide的时候才在队列中移除,如果在hide之前用户再次触发显示操作,队列会再次拿出toast1对象addView到ViewGroup里,触发the specified child already has a parent. You must call removeView() on the child's parent first.

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