title: TextView to show two string variables on two lines
body: <p>I am trying to show two string variables, apple and banana inside a <code>TextView</code>. 
  I have tried to add the newline character and doesn't work.  The only thing I haven't tried is to save the variables to files and read the files into the TextView.</p>
  
  <p>Here is my java code:`</p>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
      private Button button;
      TextView tv;
      String apple = "bananas" + "\n";
      String banana = "apples" + "\n";
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          tv = (TextView) findViewById(R.id.tv1);
          activatebutton();
      }
  
      private void activatebutton() {
          // TODO Auto-generated method stub
          button = (Button) findViewById(R.id.button1);
          button.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
                  // code here
  
                  tv.setText(apple);
                  tv.setMovementMethod(new ScrollingMovementMethod());
                  tv.setText(banana, null);
                  tv.setMovementMethod(new ScrollingMovementMethod());
              }
          });
      }
  }
  </code></pre>
  
  <p>Here is the <code>Xml</code> code:</p>
  
  <pre><code>&lt;RelativeLayout 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"&gt;
  
      &lt;Button
          android:id="@+id/button1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"
          android:layout_marginLeft="73dp"
          android:layout_marginTop="44dp"
          android:text="@string/button" /&gt;
  
      &lt;TextView
         android:id="@+id/tv1"
         android:layout_width="match_parent"
         android:layout_height="100dp"
         android:layout_alignParentLeft="true"
         android:layout_below="@+id/button1"
         android:layout_marginTop="90dp"
         android:background="#FFFF00"
         android:gravity="top"
         android:lines="10"
         android:maxLines="10"
         android:scrollbarStyle="insideOverlay"
         android:scrollbars="vertical"
         android:textSize="18sp" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>What am I doing wrong?</p>