Generic view recycler and ViewPager PagerAdapter implementation.