title: Trying to print user input from a plain text (box) on the same activity
body: <p>I'm trying to create a simple list sort of app where the user enters text in the plain text box and when they press the ok button, their message prints below (on the same activity). the android  tutorial shows how to print it on a different screen but I'm trying to do it on the same screen</p>
  
  <p>Here's my mainactivity.java code</p>
  
  <pre><code> package com.example.shoppinglist;
  
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.view.View;
  
  public class MainActivity extends AppCompatActivity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
      public void sendMessage(View view) {
  
      }
  }
  </code></pre>
  
  <p>This is the activity_main.xml if you mean this?</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.example.shoppinglist.MainActivity"&gt;
  
      &lt;EditText
          android:id="@+id/editText"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="16dp"
          android:ems="10"
          android:inputType="textPersonName"
          android:text="@string/edit_message"
          app:layout_constraintEnd_toStartOf="@+id/button"
          app:layout_constraintHorizontal_bias="0.5"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
      &lt;Button
          android:id="@+id/button"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginEnd="16dp"
          android:layout_marginStart="16dp"
          android:layout_marginTop="16dp"
          android:onClick="sendMessage"
          android:text="@string/button_send"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toEndOf="@+id/editText"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>