Code example for Fragment

Methods: getActivitygetChildFragmentManager

2
 
    return(result);
  } 
 
  private PagerAdapter buildAdapter() { 
    return(new SampleAdapter(getActivity(), getChildFragmentManager()));
  } 
} 
Contextual code suggestions in your IDE  Get Codota for Java