title: Aligning fonts in tabwidget
body: <p><img src="https://i.stack.imgur.com/0Nzt8.jpg" alt="enter image description here"></p>
  
  <p>Myself designing an app which uses GPS and Maps. I have created the UI as tabs. But i couldn't able to keep the font below the image. </p>
  
  <p>Code in my Mainactivity</p>
  
  <pre><code>TabSpec gpsspec = tabHost.newTabSpec("GPS");
  gpsspec.setIndicator("GPS", getResources().getDrawable(R.drawable.gps));
  Intent gpsIntent = new Intent(this, GpsActivity.class);
  gpsspec.setContent(gpsIntent);
  tabHost.addTab(gpsspec);
  </code></pre>
  
  <p>XML file in my drawable folder for tabs</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;!-- When selected, use grey --&gt;
      &lt;item android:drawable="@drawable/gps_icon"
            android:state_selected="true" /&gt;
      &lt;!-- When not selected, use white--&gt;
      &lt;item android:drawable="@drawable/gps_icon" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>Main.xml</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:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:orientation="vertical" &gt;
  
          &lt;TabWidget
              android:id="@android:id/tabs"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content" /&gt;
  
          &lt;FrameLayout
              android:id="@android:id/tabcontent"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/TabHost&gt;
  </code></pre>
  
  <p>Kindly help in aligning the font.</p>