title: How to align Radio button at the center of the screen
body: <p>I am using Radio buttons as tab in my application.</p>
  
  <p>I have loaded images for it, but they are aligning towards left side. how to make them align at center.</p>
  
  <p><img src="https://i.stack.imgur.com/2o4on.jpg" alt="enter image description here"></p>
  
  <p>This is how my 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" 
        android:background="#fff"/&gt;
  
      &lt;RadioGroup android:layout_width="fill_parent"
        android:layout_height="wrap_content" 
        android:orientation="horizontal"
        android:checkedButton="@+id/allcontacts"
        android:id="@+id/contactgroup"&gt;
  
  
        &lt;RadioButton android:id="@+id/allcontacts" 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center" 
        android:layout_weight="1"/&gt;
  
        &lt;RadioButton
            android:id="@+id/categories"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_weight="1"/&gt;
  
        &lt;RadioButton android:id="@+id/favourites" 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center" 
        android:layout_weight="1" /&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>