fragment嵌套,viewpager嵌套 不能正确显示

转帖:http://blog.csdn.net/mybook1122/article/details/24003343

 

通常为

viewPager.setAdapter(new MyFragmentPagerAdapter(getSupportFragmentManager(), fragmentsList));

替换为

mPager.setAdapter(new MyFragmentPagerAdapter(getChildFragmentManager(), fragmentsList));

 

posted @   橘子洲头  阅读(4879)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示