Android Open Source - Joetz-Android-V2 Tabs Pager Adapter

From Project

Back to project page Joetz-Android-V2.


The source code is released under:

GNU General Public License

If you think the Android project Joetz-Android-V2 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.jens.myapplication.camps;
/*  www.j a  va 2 s .  c  om*/


 * Created by Jens on 12/11/2014.
public class TabsPagerAdapter extends FragmentPagerAdapter {

    public TabsPagerAdapter(FragmentManager fm) {

    public getItem(int index) {

        switch (index) {
            case 0:
                // Top Rated fragment activity
                return new InfoFragment();
            case 1:
                // Games fragment activity
                return new PhotoFragment();

        return null;

    public int getCount() {
        // get item count - equal to number of tabs
        return 2;

Java Source Code List