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: `android:background="@android:color/transparent"` in my layout xml which I am loading like this (in my onCreateDialog):

```
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);

```

As you can see I also tried to set a custom style in the DialogFragment which is defined like this:

```
<style name="CustomDialog" parent="android:style/Theme.Dialog">
    <item name="android:windowBackground">@null</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:windowIsTranslucent">true</item> 
    <item name="android:alwaysDrawnWithCache">false</item>
    <item name="android:windowContentOverlay">@null</item>
</style>

```

And I also tried `getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(0));`
which leads to a null pointer exception.

I am using `android.support.v4.app.DialogFragment`. Can this be the cause?
Or am I doing something else wrong?