youlookwhat / ByRecyclerView

🔥 RecyclerView 下拉刷新、上拉松手/自动加载更多、item点击/长按、item局部刷新、头布局/尾布局/状态布局、万能分割线、Skeleton骨架图、极简adapter、嵌套滑动置顶
https://youlookwhat.github.io/ByRecyclerView
Apache License 2.0
798 stars 139 forks source link

The specified child already has a parent. You must call removeView() on the child's parent first. #24

Closed mosentest closed 2 years ago

mosentest commented 3 years ago

java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. at android.view.ViewGroup.addViewInner(ViewGroup.java:5150) at android.view.ViewGroup.addView(ViewGroup.java:4979) at android.view.ViewGroup.addView(ViewGroup.java:4919) at android.view.ViewGroup.addView(ViewGroup.java:4892) at me.jingbin.library.ByRecyclerView.setStateView(ByRecyclerView.java:925) at cn.yh.sdmp.ui.message.MessageFragment.initView(MessageFragment.java:121) at com.zipper.lib.base.fragment.BaseFragment.onViewCreated(BaseFragment.java:72) at com.zipper.lib.base.fragment.BaseRvFragment.onViewCreated(BaseRvFragment.java:46) at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:332) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1187) at androidx.fragment.app.FragmentManager.addAddedFragments(FragmentManager.java:2224)

youlookwhat commented 3 years ago

好的 我处理一下

youlookwhat commented 3 years ago

我这边没有复现,不过我处理了一下,可以引用最新的试试

mosentest commented 3 years ago

好的

------------------ 原始邮件 ------------------ 发件人: "youlookwhat/ByRecyclerView" <notifications@github.com>; 发送时间: 2021年2月1日(星期一) 下午4:57 收件人: "youlookwhat/ByRecyclerView"<ByRecyclerView@noreply.github.com>; 抄送: "Dispirited、"<709847739@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [youlookwhat/ByRecyclerView] The specified child already has a parent. You must call removeView() on the child's parent first. (#24)

我这边没有复现,不过我处理了一下,可以引用最新的试试 version : 1.1.5 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

youlookwhat commented 2 years ago

@moz1q1 可以了吗,没事的话我关闭了哈