用它与其他片段ViewPager的bug [英] A bug in ViewPager using it with other fragment
问题描述
我需要你的帮助。
我有一个活性的两个片段:在的LinearLayout简单的TextView和其他片段一个片段:ViewPager 3片段FragmentPagerAdapter
I have one Activity with two fragments: one fragment with simple TextView in LinearLayout and other fragment: ViewPager with 3 fragments in FragmentPagerAdapter.
我用做替换操作交易,但我从ViewPager错误:java.lang.IllegalStateException:递归进入executePendingTransactions
I make transaction with replace action, but I have error from ViewPager: java.lang.IllegalStateException: Recursive entry to executePendingTransactions.
这是一个源$ C $ C ,显示这个问题,也许任何人知道如何解决它。
That's a source code that show this problem, maybe anybody knows how to fix it.
推荐答案
一个ViewPager基本上是一个片段,你不能把碎片在碎片。期。
A ViewPager is basically a Fragment, and you can't put Fragments in Fragments. Period.
这篇关于用它与其他片段ViewPager的bug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!