Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 @Override
 public CharSequence getPageTitle(final int position) {
   return SharedConstants.BOARDS.get(position);
 }
Ejemplo n.º 3
0
 @Override
 public int getCount() {
   return SharedConstants.BOARDS.size();
 }