android scale tab image
<p>I set an image for each tab and result is as expected but on some devices (tablets or some smartphone models) image is seen bigger and above text. How to solve it? Thank you.</p>

<p>activity,</p>

<pre><code>        StateListDrawable selector = new StateListDrawable();

        selector.addState(new int[] { android.R.attr.state_selected }, dSel);

        icon.setImageDrawable(selector);
</code></pre>

<p>layout,</p>

<pre><code>&lt;TabHost 
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost" 
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;

      &lt;RelativeLayout       
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;


        &lt;LinearLayout  
            android:orientation="vertical"
            android:layout_width="fill_parent" 
            android:layout_height="fill_parent"
            android:layout_below="@+id/mainLayout"&gt;

            &lt;FrameLayout 
                android:id="@android:id/tabcontent"
                android:layout_width="fill_parent" 
                android:layout_height="0dip"
                android:layout_weight="1" 
                android:scrollbars="none"
                android:isScrollContainer="false"&gt;
            &lt;/FrameLayout&gt;

            &lt;TabWidget 
                android:id="@android:id/tabs"
                android:layout_width="fill_parent" 
                android:layout_height="wrap_content"
                android:layout_weight="0"
                /&gt;

        &lt;/LinearLayout&gt;         

    &lt;/RelativeLayout&gt;
</code></pre>

<p><img src="http://i.stack.imgur.com/ZE0pw.png" alt="enter image description here"><img src="http://i.stack.imgur.com/Rk7v7.png" alt="enter image description here"></p>
