title: Textview act like a terminal
body: <p>Hello I am trying to get text to display like it does in terminal or cmd. And by that I mean a window of text that with each input makes a new line and then displays the bottom line of the <code>TextView</code>, and there would be a set amount of lines always on the screen.</p>
  
  <p>It sounded easy to do, but now that I started I'm not sure how to do it.</p>
  
  <p>I tried putting a <code>TextView</code> in a <code>ScrollView</code> like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical"
  android:weightSum="100" &gt;
  
  &lt;ScrollView android:layout_width="wrap_content"
      android:layout_height="wrap_content" 
      android:layout_weight="1"&gt;
  
      &lt;TextView android:id="@+id/tv1" 
          android:layout_width="wrap_content"
          android:minLines="11"
          android:maxLines="11"
          android:layout_height="wrap_content"/&gt;
  &lt;/ScrollView&gt;
  
  &lt;EditText
      android:id="@+id/editText1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_weight="10" &gt;
  
      &lt;requestFocus /&gt;
  &lt;/EditText&gt;
  
  &lt;Button
      android:id="@+id/button1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_weight="10"
      android:onClick="buttonclick"
      android:text="Button" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and then </p>
  
  <pre><code>sss=et1.getText().toString();
  tv1.append("\n"+sss);
  </code></pre>
  
  <p>to add new lines</p>
  
  <p>This all works but I really have no idea how to make the <code>TextView</code> go to the bottom, right now it just cuts off when I hit the max number of lines.</p>
  
  <p>I definitely don't expect anyone to write my program for me. I am here to learn</p>
  
  <p>Thanks for your time!</p>