title: Android - TabLayout coming up empty on samsung galaxy tab 10.1
body: <p>I am using a tablayout nested inside a dialog that I use for a menu in my app. It works fine on all other devices except the galaxy tab 10.1 on which it just comes up empty. Theres not one single error, warning, or mention of such in the logcat or anywhere and I dont see anything coming up null when trying to debug. Anyone have any ideas on what could be the problem with this specific device and a tablayout nested in a dialog? Should I just move the whole tablayout menu into its own activity/subactivity?</p>
  
  <p><strong>Heres what I am doing with the code.....its nothing to crazy:</strong></p>
  
  <pre><code>dialog.setContentView(R.layout.maintabmenu);
  final TabHost tabs = (TabHost) dialog.findViewById(R.id.my_tabhost);
  tabs.setup();
  tabs.setCurrentTab(0);
  TabSpec tspec11 = tabs.newTabSpec("New Tab");
      tspec11.setIndicator("User");
  
  tspec11.setContent(R.id.ScrollView01);
  tabs.addTab(tspec11);
  
  TabSpec tspec2 = tabs.newTabSpec("New Tab");
  tspec2.setIndicator("Settings");
  
  tspec2.setContent(R.id.ScrollView02);
  tabs.addTab(tspec2);
  
  TabSpec tspec3 = tabs.newTabSpec("New Tab");
  tspec3.setIndicator("My options");
  tspec3.setContent(R.id.ScrollView03);
  tabs.addTab(tspec3);                 
  </code></pre>
  
  <p><strong>and heres the xml:</strong></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="@+id/my_tabhost"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  &lt;LinearLayout
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:padding="5dp"&gt;
      &lt;TabWidget
          android:id="@android:id/tabs"
          android:layout_width="match_parent"
          android:layout_height="match_parent"/&gt;
     &lt;FrameLayout
          android:id="@android:id/tabcontent"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:padding="5dp"&gt;
  
             &lt;ScrollView android:id="@+id/ScrollView01"
                android:layout_width="match_parent"
                android:layout_height="match_parent"&gt;
  
                &lt;RelativeLayout 
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@drawable/bggreydotted"
  android:orientation="vertical" &gt;
  
  &lt;TextView
      android:id="@+id/usersname"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:text="User Info" /&gt;
  
  &lt;ImageView
      android:id="@+id/profileimage2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:layout_centerInParent="true"
      android:layout_centerVertical="true"
      android:src="@drawable/favicon_yellow_g_metal_bg2" /&gt;
  
  
  &lt;ImageButton
      android:id="@+id/drawMark"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:layout_below="@+id/createMarks"
      android:background="@null"
  
      android:src="@drawable/graffitbuttondrawmark" /&gt;
  
  &lt;ImageButton
      android:id="@+id/zmLevel"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
     android:layout_alignParentLeft="true"
     android:layout_below="@+id/search"
      android:background="@null"
  
      android:src="@drawable/graffitbuttonzoomlevel" /&gt;
  
  &lt;ImageButton
      android:id="@+id/license"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true" 
      android:layout_below="@+id/mypreferences"
      android:background="@null"
      android:src="@drawable/graffitbuttonlicense" /&gt;
  
  &lt;ImageButton
      android:id="@+id/mapView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_below="@+id/zmLevel"
      android:layout_alignParentLeft="true"
      android:background="@null" 
      android:src="@drawable/graffitbuttonmapview" /&gt;
  
  &lt;ImageButton
      android:id="@+id/mypreferences"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:layout_below="@+id/drawMark"
      android:background="@null"
  
      android:src="@drawable/graffitbuttonuserpreference" /&gt;
  
  &lt;ImageButton
      android:id="@+id/search"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/marksNearMe"
      android:background="@null"
  
      android:src="@drawable/graffitbuttonmarksearch" /&gt;
  
  &lt;ImageButton
      android:id="@+id/createMarks"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:background="@null"
       android:layout_alignParentTop="true"
      android:layout_alignParentRight="true"
      android:src="@drawable/graffitbuttonuploadphoto" /&gt;
  
  &lt;ImageButton
      android:id="@+id/marksNearMe"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:background="@null"
       android:layout_alignParentLeft="true"
       android:layout_alignParentTop="true"
      android:src="@drawable/graffitbuttonmarksnearme" /&gt;
  
  &lt;/RelativeLayout&gt;
  
              &lt;/ScrollView&gt;
  
              &lt;ScrollView android:id="@+id/ScrollView02"
                 android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
                 &lt;TextView 
                     android:id="@+id/TextView02"
                     android:text="wizard"
                     android:layout_width="wrap_content" 
                     android:layout_height="wrap_content"
                     android:gravity="center_horizontal"
                     android:paddingLeft="15dip"
                     android:paddingTop="15dip"
                     android:paddingRight="20dip"
                     android:paddingBottom="15dip"/&gt;
  
              &lt;/ScrollView&gt;
  
              &lt;ScrollView android:id="@+id/ScrollView03"
                android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
                 &lt;RelativeLayout 
  android:layout_width="match_parent"
  android:layout_height="300dip"
  android:background="@drawable/bggreydotted"
  android:orientation="vertical" &gt;
  
  
  &lt;TextView
      android:id="@+id/userinfo"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:text="USER INFO" /&gt;
  
  &lt;ImageView
      android:id="@+id/profileimage"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:layout_centerInParent="true"
      android:layout_centerVertical="true"
      android:src="@drawable/favicon_yellow_g_metal_bg2" /&gt;
  
  &lt;ImageButton
      android:id="@+id/sky"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true" 
      android:layout_below="@+id/mymarks"
      android:background="@null"
      android:src="@drawable/graffitbuttonsky" /&gt;
  
  &lt;ImageButton
      android:id="@+id/myclicks"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true"
      android:background="@null"
      android:src="@drawable/graffitbuttonmyclicks" /&gt;
  
  &lt;ImageButton
      android:id="@+id/mygallery"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/myclicks"
      android:background="@null"
      android:src="@drawable/graffitbuttonmygallery" /&gt;
  
  &lt;ImageButton
      android:id="@+id/mymarks"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/mygallery"
      android:background="@null"
      android:src="@drawable/graffitbuttonmymarks" /&gt;
  
  &lt;ImageButton
      android:id="@+id/help"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true" 
      android:layout_below="@+id/createuser"
      android:background="@null"
      android:src="@drawable/graffitbuttonhelp" /&gt;
  
  &lt;ImageButton
      android:id="@+id/createuser"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true" 
      android:layout_below="@+id/logout"
      android:background="@null"
      android:src="@drawable/graffitbuttoncreateuser" /&gt;
  
  &lt;ImageButton
      android:id="@+id/login"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_alignParentRight="true"
      android:background="@null"
      android:src="@drawable/graffitbuttonlogin3" /&gt;
  
  &lt;ImageButton
      android:id="@+id/logout"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:layout_below="@+id/login"
      android:background="@null"
      android:src="@drawable/graffitbuttonlogout" /&gt;
  
  &lt;/RelativeLayout&gt;
  
              &lt;/ScrollView&gt;
  
      &lt;/FrameLayout&gt;
  &lt;/LinearLayout&gt;
  
  &lt;/TabHost&gt;
  </code></pre>