How to draw image at center of Radio button
<p>I was looking through the example posted in <a href="http://bakhtiyor.com/2009/10/iphonish-tabs/" rel="nofollow">http://bakhtiyor.com/2009/10/iphonish-tabs/</a>, actually here they have placed Radio button as replacement for Tabview.</p>

<p>But the problem is, i am unable to set the image to the centre. Its always getting aligned to left.</p>

<p>Here is the screenshot. I want my view should look like this but instead i want image to be in center. 
<img src="http://i.stack.imgur.com/WZ05c.jpg" alt="enter image description here"></p>

<p>This is how my layout XML file looks</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="@android:id/tabhost" 
  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"&gt;

    &lt;FrameLayout android:id="@android:id/tabcontent"
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content"
      android:layout_weight="1" 
      android:padding="20dip"/&gt;

    &lt;RadioGroup android:layout_width="fill_parent"
      android:layout_height="wrap_content" 
      android:orientation="horizontal"
      android:checkedButton="@+id/allcontacts"
      android:gravity="center"
      android:id="@+id/contactgroup"&gt;


      &lt;RadioButton android:id="@+id/allcontacts" 
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:orientation="vertical"
      android:background="@drawable/button_radio"/&gt;


      &lt;RadioButton
          android:id="@+id/categories"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:background="@drawable/button_radio"
          android:orientation="vertical"
          android:layout_gravity="center|right"/&gt;

      &lt;RadioButton android:id="@+id/favourites" 
   android:layout_width="fill_parent"
          android:layout_height="wrap_content"

    android:gravity="center"
    android:orientation="vertical"
      android:layout_weight="1" 
      android:background="@drawable/button_radio"/&gt;

    &lt;/RadioGroup&gt;

    &lt;TabWidget android:id="@android:id/tabs"
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content"
      android:layout_weight="0" android:visibility="gone" /&gt;
  &lt;/LinearLayout&gt;
&lt;/TabHost&gt;
</code></pre>

<p>Please advice me</p>

<p>UPDATED image after using Default tab widget
<img src="http://i.stack.imgur.com/zIpsE.png" alt="enter image description here"></p>

<p>Is it possible to customize like above radio button in default tabview.?</p>
