title: How to keep a ScrollView to be scrolled to the Bottom?
body: <p>I have a ScrollView with a LinearLayout inside an I'm adding TextViews. But I always want the last added TextView to be visible, so I need the ScrollView to scroll to the Bottom, when a TextView is added. I don't know why, but when I call scrollto(), scrollby() or fullScroll() after adding a textview, it only scrolls to the textview before the last one.</p>
  
  <p>Do you know a better way to do this?</p>
  
  <p>Thanks a lot!</p>
  
  <p>Code:</p>
  
  <p>I got a Button, which calls this function:</p>
  
  <pre><code>private void addRound() {
      // TODO Auto-generated method stub
      TextView newRound = new TextView(Stopwatch.this);
      newRound.setText("" + counter + ". - " + timerText());
      newRound.setTextSize(20);
      newRound.setGravity(Gravity.CENTER);
      linlay.addView(newRound);
      counter++;
  }
  </code></pre>
  
  <p>After calling this function I call fullScroll().</p>
  
  <pre><code>addRound();
  sv.fullScroll(View.FOCUS_DOWN);
  </code></pre>
  
  <p>sv ist my ScrollView, linlay is the linearlayout inside the scrollview.</p>