示例#1
0
 public static DetailFragment newInstance(Exam exam) {
   DetailFragment f = new DetailFragment();
   Bundle bdl = new Bundle();
   bdl.putInt(EXTRA_ID, exam.getId());
   f.setArguments(bdl);
   return f;
 }
示例#2
0
    public BaseExamProvider(
        DetailFragment baseFragment, ViewGroup parent, LayoutInflater inflater, int resourceId) {
      super(baseFragment, parent, inflater, resourceId);

      mExam = baseFragment.getExam();
    }