@Override
        public CharSequence getPageTitle(int position) {
            switch (position) {
                case 0:
                    return "LineChart";
                case 1:
                    return "ColumnChart";
                case 2:
                    return "BubbleChart";
                case 3:
                    return "PreviewLineChart";
                case 4:
                    return "PieChart";
            }
            return null;
        }
A {@link FragmentPagerAdapter} that returns a fragment corresponding to one of the sections/tabs/pages.
hellocharts-samples/src/lecho/lib/hellocharts/samples/ViewPagerChartsActivity.java