title: Scroll text in a horizontal scroll view
body: <p>I have seen a few posts similar to my issue. However, the solutions mentioned in those posts did not help me fix the problem. Here is the scenario. I have a TextView in a horizontal scroll view. The idea is as soon as a text (larger than the view) is appended to the TextView, it must be automatically scrolled to end. Here is the layout snippet.</p>
  
  <pre><code>&lt;HorizontalScrollView
               android:id="@+id/horizontalScrollView1"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_margin="5dp"
               android:background="@color/subTitleColor"
               android:fillViewport="true"
               android:scrollbars="none" &gt;
  
              &lt;TextView
                  android:id="@+id/drillPath"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="bottom"
                  android:text="this is a such a long text that scrolling is needed, scroll more"
                  android:textAppearance="?android:attr/textAppearanceSmall"
                  android:textColor="@color/textColorWhite" /&gt;
  
  &lt;/HorizontalScrollView&gt; 
  </code></pre>
  
  <p>Upon an event, I do the following.</p>
  
  <pre><code>textView.append("do auto scroll");
  </code></pre>
  
  <p>Effectively, it should scroll the text to the end. But it isn't! What is it I am lacking?</p>