Skip to content

StateLayout用在Fragment时来回切换Fragment报异常 #4

@teaim

Description

@teaim

StateLayout用在Fragment时来回切换Fragment报异常

java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

onCreateView里面重复wrap导致的

这种怎么解决

目前是判断stateLayout是否不为空, 不为空则跳过wrap

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