title: Why do I have to return a view in onCreateView instead of setting the view directly?
body: <p>I am a little confuse about the method</p>
  
  <pre><code>public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState).
  </code></pre>
  
  <p>1) I am not so sure why a fragment has to used this code in order to link it with a view or xml file.</p>
  
  <p>2) Why can't I call setContentView() directly in a fragment instead of going through onCreateView() method and return a view object.</p>
  
  <p>3) What method or object is taking in this return View as a parameter? </p>