tab height is not coming properly in android device
<p>HI friends 
I am implemented tablayout but it properly working in emulator .the height is not coming proper in device can anybody tell what is the problem</p>

<p><strong>this is my layout file</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
&lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"&gt;

 &lt;TabHost 
    android:id="@android:id/tabhost" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"
    android:background="@color/black"
        &gt; 
   &lt;RelativeLayout    
        android:layout_width="fill_parent"  
        android:layout_height="fill_parent"&gt; 
         &lt;FrameLayout android:id="@android:id/tabcontent" 
             android:layout_width="fill_parent"  
             android:layout_height="wrap_content" 
             android:layout_alignParentTop="true"  
             android:layout_above="@android:id/tabs" /&gt; 
    &lt;TabWidget android:id="@android:id/tabs" 
             android:layout_width="fill_parent"  
             android:layout_height="wrap_content" 
              android:layout_alignParentBottom="true"
                       /&gt; 
          &lt;/RelativeLayout&gt; 
    &lt;/TabHost&gt;
    &lt;/LinearLayout&gt;
</code></pre>

<p>this is my java code setting height and width</p>

<pre><code>for (int i =0; i&lt;tabWidget.getChildCount(); i++) {
         //tabWidget.getChildAt(i).setBackgroundColor(R.color.black);
          tabWidget.getChildAt(i).getLayoutParams().height = height;
   tabWidget.getChildAt(i).getLayoutParams().width = width;
   RelativeLayout relLayout = (RelativeLayout)tabWidget.getChildAt(i); 
   TextView tv = (TextView)relLayout.getChildAt(1); 
   tv.setTextSize(10.0f);
   tv.setTypeface(myTypeface1);
}
</code></pre>

<p>can anybody tell how to set height and width for tab bar give sample code</p>

<p>Thanks</p>
