title: How to Programmatically Scroll a ScrollView to Bottom
body: <p>I've a problem I can't solve: inside a ScrollView I only have a
  LinearLayout. By a user action I'm programmatically adding 2 TextView
  on this LinearLayout, but by the default the scroll keeps on the top.
  Since I controll the user action, I should be easy to scroll to the
  bottom with something like:</p>
  
  <pre><code>ScrollView scroll = (ScrollView) this.findViewById(R.id.scroll);
  scroll.scrollTo(0, scroll.getBottom());
  </code></pre>
  
  <p>But actually not. Because immediately after adding this two new
  elements getBottom() still returns the previous two. I tried to
  refresh the state invoking <code>refreshDrawableState()</code>, but I doesn't work.</p>
  
  <p>Do you have any idea how could I get the actual bottom of a ScrollView
  after adding some elements?</p>