Back to project page RiceCourses.
The source code is released under:
MIT License
If you think the Android project RiceCourses 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 info.kevinlin.ricecourses; /* w w w . j a v a 2s. c o m*/ import android.support.v4.app.FragmentManager; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentPagerAdapter; /** * Created by Kevin Lin on 7/28/2014. */ public class TabsPagerAdapter extends FragmentPagerAdapter { public TabsPagerAdapter(FragmentManager fm) { super(fm); } @Override public Fragment getItem(int index) { switch (index) { case 0: // Top Rated fragment activity return new detailsTab(); case 1: // Games fragment activity return new webpageTab(); } return null; } @Override public int getCount() { // get item count - equal to number of tabs return 2; } }