how to show image at center of tab?
<p>I have created a tab in android which displays only images (does not contain any text ), I want the image to be displayed at the center of the tab .There are multiple tabs, each containing images, but the problem is that the image is not displayed at the center of each tab.</p>

<p>here is my xml</p>

<p>
    </p>

<pre><code>    &lt;RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content" &gt;

        &lt;FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_above="@android:id/tabs"
             /&gt;

        &lt;TabWidget
            android:id="@android:id/tabs"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:background="#000000" &gt;
        &lt;/TabWidget&gt;
    &lt;/RelativeLayout&gt;

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

<p>setting image in code:</p>

<pre><code>newsTab.setIndicator("",getResources().getDrawable(R.drawable.news)).setContent(
                new Intent(RestauActivity.this, NewsActivity.class));
</code></pre>
