Code example for Fragment

Methods: getActivitygetChildFragmentManager

2
 
    return(result);
  } 
 
  private PagerAdapter buildAdapter() { 
    return(new SampleAdapter(getActivity(), getChildFragmentManager()));
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java