title: How do I change the view inside a fragment?
body: <p>I have a fragment which creates its view inside onCreateView as you'd expect. However I want to change the view periodically.</p>
  
  <p>My use case is that the fragment shows some data from a web service. When a user chooses an option from a list (another fragment), this fragment should switch to a progress bar, then once loaded, switch back to the data view.</p>
  
  <p>I could make two fragments - the loading fragment, and the displaying fragment, but it seems that since this is an encapsulated event I'd rather do it all inside the one fragment.</p>
  
  <p>Basically what I am asking, is what is the equivilent of setContentView inside a fragment.</p>