ViewPager with one page containing multiple Fragments “java.lang.IllegalArgumentException: No view found for id”
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my small Android app, I have a ViewPager with 3 pages, each page contains one fragment, that's all working fine with a FragmentStatePagerAdapter (see earlier question ). Now for larger screens, I would like to keep a ViewPager , but I want the first two fragments to be on the same first page. For this, I implement my own PagerAdapter and this is mostly working, the only problem I am trying to resolve is when I am rotating the screen, I get an error: 12-11 16:34:13.526: ERROR/AndroidRuntime(9221): FATAL EXCEPTION: main java.lang