Created
December 24, 2015 16:30
-
-
Save sockeqwe/e269eb34773e9fbb8def to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyFragmentPagerAdapter extends FragmentPagerAdapter { | |
public MyFragmentPagerAdapter(FragmentManager fm) { | |
super(fm); | |
} | |
@Override public Fragment getItem(int position) { | |
return new OverviewFragmentBuilder(1).build(); | |
} | |
@Override public int getCount() { | |
return 10; | |
} | |
@Override public CharSequence getPageTitle(int position) { | |
return "Tab " + position; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment