code: public void setContentView(int layoutResId) {
          LayoutInflater layoutInflater = LayoutInflater.from(getActivity());
          View contentView = layoutInflater.inflate(layoutResId, null);
          setContentView(contentView);
      }
docs: Set the content content from a layout resource.
  
  @param layoutResId Resource ID to be inflated.
  @see #setContentView(android.view.View)
  @see #getContentView()