在viewpager嵌套的fragment下使用viewpager嵌套fragment的时候,创建adapter时要使用getChildFragmentManager(),即可解决滑动冲突问题
<code class="hljs scss has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: 'Source Code Pro', monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;">new <span class="hljs-function" style="box-sizing: border-box;">FragmentStatePagerAdapter(<span class="hljs-function" style="box-sizing: border-box;">getChildFragmentManager()</span>)</span> </code>