title: Customize FragmentTabHost set TabWidget on bottom
body: <p>currently I'm trying to implement the FragmentTabHost for my project. I'm still new on this fragments but I found it very great in terms of reusing the layouts, etc which is why I wanted to push myself further on to it. Now I read the tutorials on how to create a Tabs with fragment and I came on this tutorial:</p>
  
  <p><a href="http://maxalley.wordpress.com/2013/05/18/android-creating-a-tab-layout-with-fragmenttabhost-and-fragments/">http://maxalley.wordpress.com/2013/05/18/android-creating-a-tab-layout-with-fragmenttabhost-and-fragments/</a></p>
  
  <p>Now this works just fine, except that the tabWidget is on top of my layout where I wanted it to be on bottom. I find that I need to setup the tabWidget after all the tabs has been initialized so I tried to add these codes:</p>
  
  <pre><code>mTabWidget = (TabWidget) findViewById(android.R.id.tabs);
  
      mTabWidget.setBackgroundColor(Color.WHITE);
      mTabWidget.setShowDividers(LinearLayout.SHOW_DIVIDER_NONE);
      mTabWidget.setGravity(Gravity.BOTTOM);
  </code></pre>
  
  <p>Now this one already eliminated the divider and changes the color but obviously won't put my Widget on the bottom part of my layout. Now how would I do that?</p>
  
  <p>I also tried to edit the Tabhost xml and just put the TabWidget after the FrameLayout but nothing happens. here's the xml:</p>
  
  <pre><code>    &lt;android.support.v4.app.FragmentTabHost
                  xmlns:android="http://schemas.android.com/apk/res/android"
                  android:id="@android:id/tabhost"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"&gt;
  
              &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:orientation="vertical" &gt;
  
                  &lt;FrameLayout
                          android:id="@+id/tabFrameLayout"
                          android:layout_width="match_parent"
                          android:layout_height="0dp"
                          android:layout_weight="1" /&gt;
  
                  &lt;TabWidget
                          android:id="@android:id/tabs"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_weight="0"
                          android:orientation="horizontal"
                          /&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/android.support.v4.app.FragmentTabHost&gt;
  </code></pre>