Android Pager Issue on Pause

前端 未结 3 1053
情深已故
情深已故 2021-01-05 18:19

I\'m building an application using Pager with the compatibility library. My application forceClose whenever I try to pause it (when I come back to my desktop for instance).<

3条回答
  •  灰色年华
    2021-01-05 18:52

    I've stumbled upon the same problem while using ActionBarSherlock compatibility library. The workaround is that your adapter extends FragmentStatePagerAdapter instead of FragmentPagerAdapter.

提交回复
热议问题