title: Android ProgressDialog with setContentView
body: <p>I've read a hell of a lot about this, and can't see anyone who's done or tried it before.</p>
  
  <p>So I've got an object that extends ImageView, then within this I call a progress dialog and set the progress dialogs's content to the imageview (i.e. attempting to draw the progress dialog in the imageview..view.)</p>
  
  <pre><code>    loadingProgressDialog.setContentView(this); //this is: LoaderImageView extends ImageView        
      loadingProgressDialog.setIndeterminate(true);
      loadingProgressDialog.show();
  </code></pre>
  
  <p>And I get the error: requestFeature() must be called before adding content</p>
  
  <p>Now I've seen this error before on loads of posts and yes the answer seems obvious. I've tried to set all the features:</p>
  
  <pre><code>loadingProgressDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
  loadingProgressDialog.requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
  loadingProgressDialog.getWindow().requestFeature(Window.FEATURE_PROGRESS);
  loadingProgressDialog.getWindow().requestFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
  </code></pre>
  
  <p>But first I don't understand why I need this? And second none of them work anyway!</p>
  
  <p>So the question is can I set the ProgressDialog contentView to an ImageView? If so what have I gotten wrong?</p>