Views not appearing in viewpager

view story

http://stackoverflow.com – I'm trying to build a viewpager for the first time. I'm populating an ArrayList of views in the main onCreate method and passing it to the constructor of the PagerAdapter. The activity launches fine and I can see the ViewPager (or at least its background) but none of the views appear in it, I just see the blank background. I've tried inflating layout XMLs that I know are working in other widgets, so it can't be a problem there. I'm guessing it has something to do with the way I have the instantiateObject method written. Anyway, here is my adapter: public class StoryAdapter extends PagerAd (HowTos)