Code example for FragmentActivity

Methods: setProgressBarIndeterminateVisibility

0
    super.setContentView(view, params);
    onSetContentView(); 
  } 
 
  private void onSetContentView() { 
    setProgressBarIndeterminateVisibility(false); 
    mSetContentViewAlreadyCalled = true;
  } 
 
  /** 
   * Helper method that allows to initialize and add a fragment to activities that usually have 
   * just one single fragment. Fragment is added using its class.getName() as tag. 
   * 
   * @param containerId resource id of the fragment container (must be created through android 
   * resources) 
   * @param fragmentClass the class of the fragment to setup 
   */ 
  void setupBaseFragment(int containerId, Class<? extends Fragment> fragmentClass) {
    setupBaseFragment(containerId, fragmentClass, null);
  }