title: Progress Dialog setContentView not working in onCreateDialog DialogFragment
body: <p>I am using this code for showing <code>Progressbar</code> according to my need :</p>
  
  <pre><code>public class DelayedProgressDialog extends  DialogFragment
  {
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
           setCancelable(false);
      }
  
  
  
      @Override
      public Dialog onCreateDialog(Bundle savedInstanceState)
      {
            ProgressDialog dialog = new ProgressDialog(getActivity());
          dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
          dialog.setTitle(null);
          dialog.setContentView(R.layout._task);
          dialog.setIndeterminate(false);
          return dialog;
      }
  }
  </code></pre>
  
  <p>xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
       &gt;
  
      &lt;ProgressBar
          style="?android:attr/progressBarStyleLarge"
          android:layout_width="@dimen/_100sdp"
          android:layout_height="@dimen/_100sdp"
          android:id="@+id/progressBar"
          android:layout_centerInParent="true"
          android:indeterminateTint="@android:color/white"
          android:layout_centerVertical="true"
          android:layout_centerHorizontal="true" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Now issue is that my custom progressbar not showing in this fragment when I call this:
  showing normal progressbar on left side without title, I want to show in centre.  and if I removed setContentview then not getting any effect which means my custom view not showing in this, how can I show my view inside this.</p>