Back to project page UTHPortal-Android-Gradle.
The source code is released under:
MIT License
If you think the Android project UTHPortal-Android-Gradle 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.uth.uthportal.adapter; import com.uth.uthportal.CoursesFragment; import com.uth.uthportal.DepartmentFragment; import com.uth.uthportal.FoodFragment; //w w w. ja va 2s . c o m import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; /** * Basic Fragment manager, used to manage our main * tabs. * @author GeorgeT * */ public class TabsPagerAdapter extends FragmentPagerAdapter{ public TabsPagerAdapter(FragmentManager fm) { super(fm); } @Override public Fragment getItem(int arg0) { switch(arg0){ case 0: return new CoursesFragment(); case 1: return new DepartmentFragment(); case 2: return new FoodFragment(); } return null; } @Override public int getCount() { //tabs count return 3; } }