How to set a long title for dialog dialogfragment?
<p>I want the title dialog with the name of book. The problem is with the long title, it seems the default title dialog tries to trim the extra long text in order to fit the dialog width</p>

<p><img src="http://i.stack.imgur.com/Rc74i.png" alt="enter image description here"></p>

<p>So I came up with the solution that removing the default title by this code </p>

<pre><code>setStyle(STYLE_NO_TITLE, 0);
</code></pre>

<p>Replace the default with a textview widget. This is my custom dialog xml</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="match_parent"
    android:orientation="vertical" &gt;

    &lt;TextView
        android:id="@+id/dialog_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" /&gt;

    &lt;ListView
        android:id="@+id/list"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" /&gt;

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

<p>However it just mess up the dialog layout</p>

<p><img src="http://i.stack.imgur.com/t0HFx.png" alt="enter image description here"></p>

<p>So could anyone me a better way to deal with that ? Thanks</p>
