Re: [android-developers] Simple PagerAdapter does not display views

2014-11-25 Thread Doug Gordon
Yes, and that's what's so frustrating, Kastya. The breakpoints appear to indicate that everything is working, as does the fact that it responds to a swipe. For example, if I start it off by calling ViewPager with setCurrentItem(3), my instantiateItem is called with position=3, followed by posit

Re: [android-developers] Simple PagerAdapter does not display views

2014-11-24 Thread Kostya Vasilyev
Did you properly implement the adapter's isViewFromObject? How about getItemPosition? -- K 2014-11-25 0:22 GMT+03:00 Doug Gordon : > I have a fragment in which I want to display a number of similar pages > using ViewPager. For some reason I thought that it would be simpler to > extend the base

[android-developers] Simple PagerAdapter does not display views

2014-11-24 Thread Doug Gordon
I have a fragment in which I want to display a number of similar pages using ViewPager. For some reason I thought that it would be simpler to extend the base PagerAdapter to feed views to the ViewPager. My custom PageAdapter implements instantiateItem by inflating a layout, populating its widge