This is a ViewPager class taken from the support library - without the other other junk (fragments/actionbar/etc.).