title: What is the difference between setContentView and LayoutInflater?
body: <p>I am creating a tabs list with several fragments. 
  I have noticed that, in the main activity, I used <code>setContentView</code> to get the layout xml and use <code>findViewById</code> to get the corresponding UI element config.</p>
  
  <pre><code>setContentView(R.layout.fragment_tabs);
  mTabHost = (TabHost)findViewById(android.R.id.tabhost);
  mTabHost.setup();
  mTabManager = new TabManager(this, mTabHost, android.R.id.tabcontent);
  </code></pre>
  
  <p>However, in the different fragment class, I have to use the inflater instead. </p>
  
  <pre><code>View v = inflater.inflate(R.layout.webview, container, false);
  WebView myBrowser=(WebView)v.findViewById(R.id.mybrowser);
  </code></pre>
  
  <p>And both function are used to get the layout xml to create an object, why is there a difference? Is the first one use during <code>onCreate</code>, and the second one during <code>onCreateView</code>? In what situation I should choose either of them?</p>