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.
package com.example.jens.myapplication.account; /*from w w w. j a v a2 s . co m*/ import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import com.example.jens.myapplication.bookingHistory.BookingHistoryOverviewFragment; /** * Created by Jens on 13/11/2014. */ public class TabsPagerAdapter extends FragmentPagerAdapter { public TabsPagerAdapter(FragmentManager fm) { super(fm); } @Override public android.support.v4.app.Fragment getItem(int index) { switch (index) { case 0: // Top Rated fragment activity return new ProfileFragment(); case 1: // Games fragment activity return new PersonsFragment(); case 2: // Games fragment activity return new BookingHistoryOverviewFragment(); } return null; } @Override public int getCount() { // get item count - equal to number of tabs return 3; } }