No view found for id 0x7f080005 (id/view_pager) for fragment

情形:在popupwindow里面放入了ViewPager,出现伤处的错误。


参考了一下http://blog.csdn.net/Droid_zhlu/article/details/22269103

http://stackoverflow.com/questions/19544829/viewpager-with-fragments-inside-popupwindow-or-dialogfragment-error-no-view/19552298#19552298


解决办法:使用DialogFragment来替换popupwindow。


从底部弹出DialogFragment的方式。

http://stackoverflow.com/questions/29741588/dialogfragment-positioning

你可能感兴趣的:(No view found for id 0x7f080005 (id/view_pager) for fragment)