title: TabHost NullPointerException in layout
body: <p>I been following the Tab example provided by Google. I am trying to use the XML layout provided to setup a tab layout.</p>
  
  <p>I use this XML layout @ <a href="http://developer.android.com/guide/tutorials/views/hello-tabwidget.html" rel="nofollow noreferrer">http://developer.android.com/guide/tutorials/views/hello-tabwidget.html</a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/tabhost"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
          &lt;TabWidget
              android:id="@android:id/tabs"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content" /&gt;
          &lt;FrameLayout
              android:id="@android:id/tabcontent"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"&gt;
              &lt;TextView 
                  android:id="@+id/textview1"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent" 
                  android:text="this is a tab" /&gt;
              &lt;TextView 
                  android:id="@+id/textview2"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent" 
                  android:text="this is another tab" /&gt;
              &lt;TextView 
                  android:id="@+id/textview3"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent" 
                  android:text="this is a third tab" /&gt;
          &lt;/FrameLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/TabHost&gt;
  </code></pre>
  
  <p>When ever I switch the Layout tab in the Eclipse layout designer I get a <strong>NullPointerException: null</strong> error inside my Eclipse.</p>
  
  <p>This happens also when I try to drag and drop a TabHost, and then a TabWidget into an empty layout file.</p>
  
  <p>What am I doing wrong ? this seems pretty simple.</p>