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