Showing specified page when view pager is first created
问题 I have a fragment that contains a ViewPager . This ViewPager is backed by a PagerAdapter that uses a Cursor . The cursor is managed by LoaderCallbacks . I'm using the v4 support libraries here. What I want is to create the fragment and have the view pager showing a specified page, rather than starting at page 0. I know that ViewPager has a setCurrentItem() method, but the data may not yet be loaded when the ViewPager is created. What I need is to listen to the adapter for data set changes,