示例#1
0
 @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);
 }
示例#2
0
  public SurveyAdapter(Context _context, FragmentManager fm, Survey _survey) {
    super(fm);
    context = (SurveyActivity) _context;

    survey = _survey;
    SetDependencies(survey);
    SurveyFragment.SetSurvey(survey, this);
  }
示例#3
0
 @Override
 public int getCount() {
   // Show 3 total pages.
   return SurveyFragment.GetPagesCount();
 }