Back to project page sixgrid.
The source code is released under:
MIT License
If you think the Android project sixgrid 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 io.pure.sixgrid.adapter; /* w w w . j a va 2 s .c om*/ import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import io.pure.sixgrid.drawer.AppsFragment; import io.pure.sixgrid.fragments.AboutFragment; import io.pure.sixgrid.fragments.HomeFragment; public class SixPagerAdapter extends FragmentPagerAdapter { public SixPagerAdapter(FragmentManager fm) { super(fm); } public Fragment getItem(int position) { switch (position) { case 0: return new AppsFragment(); case 1: return new HomeFragment(); case 2: return new AboutFragment(); } return null; } public int getCount() { return 3; } }