将 外层的Fragment
FragmentPagerAdapter adapter =newFragmentPagerAdapter(getFragmentManager());
的getFragmentManager改为getChildFragmentManager();
将 外层的Fragment
FragmentPagerAdapter adapter =newFragmentPagerAdapter(getFragmentManager());
的getFragmentManager改为getChildFragmentManager();
本文标题:Fragment双层嵌套的时候,出现子fragment不显示。d
本文链接:https://www.haomeiwen.com/subject/cwlesttx.html
网友评论