Scrolling TextView in custom alert dialog
<p>I am trying to get my textview to scroll in my custom alert dialog, I cant seem to get it to work. I have an image and title + close button, then below the scrolling textview I have three buttons inside a table.
Can anyone figure out what I'm doing wrong?</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
 &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_root" android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:layout_marginLeft="10dip" android:layout_marginRight="10dip"&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/relViewTitle" android:layout_width="wrap_content"
    android:layout_height="wrap_content" android:clickable="true"&gt;

    &lt;ImageView android:id="@+id/titleImg" android:src="@drawable/redpin"
        android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;

    &lt;TextView android:id="@+id/textTitle" android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:layout_toRightOf="@id/titleImg"
        android:layout_marginTop="10dip" android:layout_marginLeft="30dip"
        android:textColor="#fffafa" android:textStyle="bold" /&gt;

    &lt;Button android:id="@+id/btnClose" android:text="Close"
        android:layout_width="60dip" android:layout_height="35dip"
        android:layout_alignParentRight="true" /&gt;
&lt;/RelativeLayout&gt;
    &lt;View android:layout_width="fill_parent" android:layout_height="1dip"
    android:background="#fffafa" /&gt;

    &lt;ScrollView android:layout_width="wrap_content"
    android:layout_height="wrap_content"&gt;

    &lt;TextView android:id="@+id/text" android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:paddingLeft="20dip"
        android:paddingRight="20dip" android:singleLine="false"
        android:maxLines="7" android:scrollbars="vertical"
        android:paddingBottom="20dip" android:textColor="#fffafa" /&gt;
  &lt;/ScrollView&gt;


    &lt;TableLayout android:id="@+id/tableBtns"
    android:layout_width="fill_parent" android:layout_height="wrap_content"
    android:stretchColumns="*"&gt;

    &lt;TableRow android:gravity="center" android:layout_width="wrap_content"&gt;
        &lt;Button android:id="@+id/btnDialPrev" android:text="Previous"
            android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt;
        &lt;Button android:id="@+id/btnDialOk" android:text="ok"
            android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt;

        &lt;Button android:id="@+id/btnDialNext" android:text="Next"
            android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt;
    &lt;/TableRow&gt;
    &lt;/TableLayout&gt;
</code></pre>

<p></p>
