Code example for FragmentActivity

Methods: setContentView, setProgressBarIndeterminateVisibility

0
    super.setContentView(layoutResId);
    onSetContentView(); 
  } 
 
  @Override public void setContentView(View view) {
    super.setContentView(view);
    onSetContentView(); 
  } 
 
  @Override public void setContentView(View view, ViewGroup.LayoutParams params) {
    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