autoscrolling textview in android
<p>I'm building a chat-like application that displays text the user inputs to the screen using a scrollview. What I'd like to do is making the scrollview autoscroll as more text is appended to the screen. 
I'm using a textview to display the input. The xml portion of the scrollview is as follows:</p>

<pre><code>    &lt;ScrollView
        android:id="@+id/scroller"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_above="@id/buttons"       
      &gt;

 &lt;LinearLayout
    android:id="@+id/start_chat"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" 
    &gt;

 &lt;/LinearLayout&gt;

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

<p>How do I go about doing that? I tried setting the layout's gravity to "bottom", but that doesn't work correctly (text inputed that moves up as the scrollview is scrolled down can't be viewed again). </p>

<p>Any help is greatly appreciated.</p>
