title: android : tabhost not rendering tabs
body: <p>I have a simple activity</p>
  
  <pre><code>public class MainActivity extends Activity {
      private TabHost tabHost;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
  
          tabHost = (TabHost)findViewById(R.id.tabHost);
          tabHost.setup();
          tabHost.newTabSpec("a");
          tabHost.newTabSpec("b");
          tabHost.newTabSpec("c");
      }
  
  
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.menu_main, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
          int id = item.getItemId();
  
          //noinspection SimplifiableIfStatement
          if (id == R.id.action_settings) {
              return true;
          }
  
          return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>
  
  <p>this is xml for its view definition
  
  <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:paddingBottom="@dimen/activity_vertical_margin"
      tools:context="activities.MainActivity"
      android:visibility="visible"&gt;
  
      &lt;TabHost
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:id="@+id/tabHost"
          android:layout_alignParentTop="true"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true"&gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical"&gt;
  
              &lt;TabWidget
                  android:id="@android:id/tabs"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:visibility="visible"
                  android:background="#ff0007ff"&gt;&lt;/TabWidget&gt;
  
              &lt;FrameLayout
                  android:id="@android:id/tabcontent"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/tab1"
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:orientation="vertical"
                      android:visibility="visible"
                      android:background="#ff122dff"&gt;&lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/tab2"
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:orientation="vertical"&gt;&lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/tab3"
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:orientation="vertical"&gt;&lt;/LinearLayout&gt;
              &lt;/FrameLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/TabHost&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I understand the view for tabhost has blank content but I expected view of atleast tabs being rendered when this activity gets launched </p>
  
  <p>however I see a blank screen for this activity, what am I missing ?</p>
  
  <p><img src="https://i.stack.imgur.com/J7ua8.png" alt="enter image description here"></p>