How to use BottomSheetDialog?
<p>I want to try <strong>BottomSheetDialog</strong> introduced in Android Support Library <strong>23.2</strong> but it doesn't seem to work correctly. Here is what the doc says:</p>

<blockquote>
  <p><em>While BottomSheetBehavior captures the persistent bottom sheet case, this release also provides a BottomSheetDialog and
  BottomSheetDialogFragment to fill the modal bottom sheets use case.
  Simply replace AppCompatDialog or AppCompatDialogFragment with their
  bottom sheet equivalents to have your dialog styled as a bottom
  sheet.</em>"</p>
</blockquote>

<p>So I changed my <code>AppCompatDialog</code> to <code>BottomSheetDialog</code>:</p>

<pre><code>package my.package.ui.dialog;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.design.widget.BottomSheetDialog;

import my.package.R;

public class AccountActionsDialog extends BottomSheetDialog {
    public AccountActionsDialog(Context context) {
        super(context);

        if (context instanceof Activity) {
            setOwnerActivity((Activity) context);
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutInflater().inflate(R.layout.dialog_account_actions, null));
    }
}
</code></pre>

<p>Here is my layout file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"&gt;

    &lt;TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#ff0000"
        android:padding="16dp"
        android:text="Delete account"
        android:textColor="#ffffff" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>Then I use the following code in my Activity:</p>

<pre><code>new AccountActionsDialog(this).show();
</code></pre>

<p>My screen becomes dimmed but the content of my dialog is not visible. Any thoughts on what might be missing? It works fine when I use <strong>AppCompatDialog</strong> instead.</p>