title: Android Studio: New activity opens as blank screen
body: <p>Hello!<br>
  I'm just starting in Android Studio. I searched for a matching question but no joy, please yell out if you've seen this one already!</p>
  
  <p>My main activity has a single button which opens the second activity, the button works and it opens. But the second activity shows as a blank screen instead of the text that should be there.</p>
  
  <p>Apologies for any irrelevant copy/paste!</p>
  
  <p>Manifest:</p>
  
  <pre><code>    &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/Theme.AppCompat.NoActionBar" &gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".fiveThreeOne"
              android:label="@string/title531"&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  </code></pre>
  
  <p>Main activity:</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" android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:textColor="#ffdedede"
      android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"&gt;
  
      &lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="fiveThreeOne"
          android:textAllCaps="false"
          android:id="@+id/open531btn"
          android:layout_below="@+id/mainTitle"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true"
          android:layout_marginTop="38dp" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Button code in main class</p>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          Button open531button = (Button) findViewById(R.id.open531btn);
          open531button.setOnClickListener(new OnClickListener(){
  
              public void onClick(View v){
                  startActivity(new Intent(MainActivity.this, fiveThreeOne.class));
              }
          });
  
      }
  </code></pre>
  
  <p>Second activity xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;TextView
          android:text="@string/title531"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:editable="false"
          android:textSize="35sp"
          android:id="@+id/title531"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true" /&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Thanks!</p>