示例#1
0
 public Fragment getFragment(final int position) {
   final BoardFragment fragment = new BoardFragment();
   final Bundle args = new Bundle();
   args.putInt(SharedConstants.ARG_SECTION_NUMBER, position);
   args.putString(SharedConstants.ARG_BOARD_NAME, SharedConstants.BOARDS.get(position));
   fragment.setArguments(args);
   return fragment;
 }
示例#2
0
 @Override
 public CharSequence getPageTitle(final int position) {
   return SharedConstants.BOARDS.get(position);
 }
示例#3
0
 @Override
 public int getCount() {
   return SharedConstants.BOARDS.size();
 }