title: Tab bar not showing in activity
body: <p>I have a tab bar that I want to add to multiple activities. I have a <code>TabController.java</code> which looks like this</p>
  
  <pre><code>import android.app.TabActivity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.widget.TabHost;
  import android.widget.TabHost.TabSpec;
  
  public class TabController extends TabActivity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.tabcontroller);
  
      TabHost tabHost = getTabHost();           
      Intent intent;  
  
      intent = new Intent().setClass(this, Help.class);  
      TabSpec specHelp = tabHost.newTabSpec("Help").setIndicator("Help")  
                    .setContent(intent);  
  
  
      intent = new Intent().setClass(this, Services.class);  
      TabSpec specServices = tabHost.newTabSpec("Services").setIndicator("Services")  
                    .setContent(intent);  
  
  
      intent = new Intent().setClass(this, Inbox.class);  
      TabSpec specInbox = tabHost.newTabSpec("Inbox").setIndicator("Inbox")  
                    .setContent(intent);  
  
  
      intent = new Intent().setClass(this, About.class);  
      TabSpec specAbout = tabHost.newTabSpec("About").setIndicator("About")  
                    .setContent(intent);  
  
  
      intent = new Intent().setClass(this, More.class);  
      TabSpec specMore = tabHost.newTabSpec("More").setIndicator("More")  
                    .setContent(intent);  
  
      tabHost.addTab(specHelp); 
      tabHost.addTab(specServices); 
      tabHost.addTab(specInbox);
      tabHost.addTab(specAbout);        
      tabHost.addTab(specMore);
  }
  </code></pre>
  
  <p>and a <code>tabcontroller.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;merge xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  &lt;TabHost android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:id="@android:id/tabhost" &gt;
  
     &lt;RelativeLayout
         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_alignParentBottom = "true" 
             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;/FrameLayout&gt;
  
     &lt;/RelativeLayout&gt;
  
     &lt;/TabHost&gt;
  &lt;/merge&gt;
  </code></pre>
  
  <p>What I want to do with that is to add that layout to multiple activities. When I try and add the layout I use <code>&lt;include layout="@layout/tabcontroller"/&gt;</code>. When I run the project my tab bar does not appear on the screen. </p>
  
  <p>How can I add this tab bar to my activities? PS. <code>TabController.java</code> is not my main activity</p>