title: how to set setContentView in fragment
body: <p>I am trying to call a library in a fragment  but dont know how to set it in a fragment I have done it in the main activity but I am getting an error in setting the setContentView in my fragment 
  the compile dependency </p>
  
  <pre><code>compile 'com.github.medyo:android-about-page:1.0.2'
  </code></pre>
  
  <p>my fragment content view</p>
  
  <pre><code>  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
      // Inflate the layout for this fragment
      View rootView  = inflater.inflate(R.layout.fragment_navigation, container, false);
      Element versionElement = new Element();
      versionElement.setTitle("Version 6.2");
  
      Element adsElement = new Element();
      adsElement.setTitle("Advertise with us");
  
      View aboutPage = new AboutPage(getActivity())
              .isRTL(false)
              .addItem(versionElement)
              .addItem(adsElement)
              .addGroup("Connect with us")
              .addEmail("elmehdi.sakout@gmail.com")
              .addFacebook("the.medy")
              .addTwitter("medyo80")
              .addYoutube("UCdPQtdWIsg7_pi4mrRu46vA")
              .addPlayStore("com.ideashower.readitlater.pro")
              .addInstagram("medyo80")
              .addGitHub("medyo")
              .create();
  
      setContentView(aboutPage);
      return rootView;
  }
  </code></pre>
  
  <p>I am getting error in the second last line how to solve this.
  The following library will work in api 20+
  library <a href="https://github.com/medyo/android-about-page" rel="nofollow">https://github.com/medyo/android-about-page</a></p>