@Override public Fragment getItem(int position) { // getItem is called to instantiate the fragment for the given page. // Return a PlaceholderFragment (defined as a static inner class // below) return SurveyFragment.newInstance(position); }
public SurveyAdapter(Context _context, FragmentManager fm, Survey _survey) { super(fm); context = (SurveyActivity) _context; survey = _survey; SetDependencies(survey); SurveyFragment.SetSurvey(survey, this); }
@Override public int getCount() { // Show 3 total pages. return SurveyFragment.GetPagesCount(); }