title: How to display typed text in text view Android
body: <p>I am having trouble displaying the text in a text view. I want to make a chat/texting style app. Also, how would I have a border around my text View field so that it looks nice. Thank You! and I apologize for my troubles ahed of time. </p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="horizontal"&gt;
       &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="wrap_content"
          android:layout_height="400dp"
          android:text="" /&gt;
      &lt;EditText android:id="@+id/edit_message"
          android:layout_weight="1"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:hint="@string/edit_message" 
          android:layout_gravity="bottom" /&gt;
  
      &lt;Button
          android:id="@+id/button_send"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:onClick="sendMessage"
          android:text="@string/button_send" 
          android:layout_gravity="bottom"/&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
  
  
    @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
    Button button = (Button)findViewById(R.id.button_send);
  
      };
  </code></pre>