Is it possible to define each tab's content in a separate XML file?
<p>I would like to define each tab's content in a different XML file so the visual editor in Eclipse can be used. That is, without all of the tabs being laid over each other. The visual editor doesn't even seem to work with the XML example provided here: [link text][1]
  [1]: <a href="http://developer.android.com/guide/tutorials/views/hello-tabwidget.html" rel="nofollow">http://developer.android.com/guide/tutorials/views/hello-tabwidget.html</a> "Here", It just has a Null pointer exception.</p>

<p>I have tried to define each tap in it's own file, for example:</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"&gt;
&lt;TextView android:text="@+id/TextView01" android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/TextView&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>And when adding the tab I use:</p>

<pre><code>mTabHost.addTab(mTabHost.newTabSpec("tab_in").setIndicator("Input").setContent(R.layout.input));
</code></pre>

<p>But this causes the application to crash on launch. Is there any way to do this?</p>

<p>Thanks</p>
