@Override
        public Fragment getItem(int position) {
            // getItem is called to instantiate the fragment for the given page.
            // Return a PlaceholderFragment (defined as a static inner class below).
            return PlaceholderFragment.newInstance(position + 1);
        }
A {@link FragmentPagerAdapter} that returns a fragment corresponding to one of the sections/tabs/pages.
hellocharts-samples/src/lecho/lib/hellocharts/samples/ViewPagerChartsActivity.java