Dialog extending from AlertBuilder?
<p>Is there a way to use my own Dialog-extended class with an AlertBuilder style? Right now I have:</p>

<pre><code>@Override
protected Dialog onCreateDialog(int id) {
    LayoutInflater inflater = LayoutInflater.from(this);

    switch (id) {
        case MY_DIALOG:
            View view = inflater.inflate(R.layout.my_dlg_layout, null);

            AlertDialog dlg = new AlertDialog.Builder(this)
                .setView(view)
                .create();
            return dlg;
    }

    return null;
}
</code></pre>

<p>But it's getting too crazy, and I'd like to move the dialog definition into its own class. (the above doesn't look too bad, I'm skipping a lot for the sake of clarity - basically I'm using a somewhat complicated custom view with AlertBuilder).</p>

<p>I very much want to use Dialog Fragment, but am not ready to do it yet, I need to build this as a temporary thing.</p>

<p>Thanks</p>
