title: Adding a fragment causes crash
body: <p>I'm stuck with a fragment-related problem.  I have a splash screen that will "load" for 3 secs and then will create a new <code>Intent</code> and start the <code>MainActivity</code>.</p>
  
  <p>The main activity code: </p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  }
  </code></pre>
  
  <p>and the corresponding XML: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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:paddingBottom="@dimen/activity_vertical_margin"
     tools:context="com.example.paolo.ebolatrack.MainActivity"&gt;
  
  
      &lt;fragment
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
         android:name="com.example.paolo.ebolatrack.NewsFragment"
         &gt;&lt;/fragment&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and the xml for the fragment:</p>
  
  <pre><code>&lt;FrameLayout 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" tools:context="com.example.paolo.ebolatrack.NewsFragment"&gt;
  
      &lt;!-- TODO: Update blank fragment layout --&gt;
      &lt;TextView android:layout_width="match_parent" android:layout_height="match_parent"
         android:text="@string/hello_blank_fragment" /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>and here's the error I'm getting (full trace <a href="http://pastebin.com/b2VRU4JJ" rel="nofollow">here</a>):</p>
  
  <pre><code>10-26 12:05:05.153 2855-2855/com.example.paolo.ebolatrack E/AndroidRuntime: FATAL EXCEPTION: main
  10-26 12:05:05.153 2855-2855/com.example.paolo.ebolatrack E/AndroidRuntime: Process: com.example.paolo.ebolatrack, PID: 2855
  10-26 12:05:05.153 2855-2855/com.example.paolo.ebolatrack E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.paolo.ebolatrack/com.example.paolo.ebolatrack.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class fragment
  ...
  </code></pre>
  
  <p>Adding the fragment seems to crash the app.  I'm using Android Studio.</p>