title: Android ScrollView scrollTo() method not working with TextView?
body: <p>For Example, I have a layout like this:</p>
  
  <pre><code>&lt;ScrollView&gt;
    &lt;LinearLayout&gt;
      &lt;LinearLayout&gt;
           ...
      &lt;/LinearLayout&gt;
      &lt;LinearLayout&gt;
           ...
      &lt;/LinearLayout&gt;
      &lt;LinearLayout&gt;
           &lt;TextView&gt;
           &lt;/TextView&gt;
      &lt;/LinearLayout&gt;
    &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt; 
  </code></pre>
  
  <p>My TextView have long content. Now I can scroll the ScrollView manually to the end of TextView content. In the code, I write: <code>scrview.scrollTo(0, 800);</code>, with scrview is my ScrollView. It supposed to scroll to the middle of the TextView content. But when running, it only scrolled to the start of the TextView and can't scroll through the TextView content. </p>
  
  <p>Does anybody know what causing this problems?</p>
  
  <p><strong>EDIT:</strong> I found it. Seems like I call scrollTo too soon. Using </p>
  
  <pre><code>scrview.post(new Runnable() {
                  public void run() {
                      scrview.scrollTo(0, 800);
                  }
              }); 
  </code></pre>
  
  <p>instead and it works. Posted the answer for anyone getting same problem.</p>