title: How to switch alertDialog content?
body: <h2>Background</h2>
  
  <p>I have an AlertDialog that is used in a DialogFragment, which I wish to switch in it between 3 states:</p>
  
  <ul>
  <li>a progress bar , which is centered in the screen, making everything else a bit darker. </li>
  <li>a ListView as the content, and a title.</li>
  <li>same as the first state.</li>
  </ul>
  
  <p>I need to use the same dialog and not create a new one, yet be able to switch between those states.</p>
  
  <h2>The problem</h2>
  
  <p>I can't manage to do it using the normal APIs.</p>
  
  <h2>What I've tried</h2>
  
  <p>If I use "setView", it doesn't show anything except for making the screen darker.</p>
  
  <p>If I use "setContentView", the listView takes the entire space, and it's also transparent vs the activity below (I know it's supposed to be transparent, but below a nice dialog) and looks weird . It's also without showing the title of the alertDialog.</p>
  
  <h2>The question</h2>
  
  <p>How can I solve this? Is this even possible?</p>