title: Can't get my DialogFragment background to be transparent
body: <p>I have created a custom DialogFragment like it is described in the developer guide.
  Now what I am trying to do sounds simple enough, but I cannot get it to work.
  I have defined: <code>android:background=&quot;@android:color/transparent&quot;</code> in my layout xml which I am loading like this (in my onCreateDialog):</p>
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
  
  LayoutInflater inflater = getActivity().getLayoutInflater();
      
  final View view = inflater.inflate(R.layout.pausedialog, null);
  setStyle(STYLE_NO_FRAME, R.style.CustomDialog);
  </code></pre>
  <p>As you can see I also tried to set a custom style in the DialogFragment which is defined like this:</p>
  <pre><code>&lt;style name=&quot;CustomDialog&quot; parent=&quot;android:style/Theme.Dialog&quot;&gt;
      &lt;item name=&quot;android:windowBackground&quot;&gt;@null&lt;/item&gt;
      &lt;item name=&quot;android:windowNoTitle&quot;&gt;true&lt;/item&gt;
      &lt;item name=&quot;android:windowIsFloating&quot;&gt;true&lt;/item&gt;
      &lt;item name=&quot;android:windowIsTranslucent&quot;&gt;true&lt;/item&gt; 
      &lt;item name=&quot;android:alwaysDrawnWithCache&quot;&gt;false&lt;/item&gt;
      &lt;item name=&quot;android:windowContentOverlay&quot;&gt;@null&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  <p>And I also tried <code>getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(0));</code>
  which leads to a null pointer exception.</p>
  <p>I am using <code>android.support.v4.app.DialogFragment</code>. Can this be the cause?
  Or am I doing something else wrong?</p>