I will show how to move tabs from top to bottom of the application.

please follow this tutorial sample code to update the code,

http://www.powenko.com/en/?p=305

 

 
 This is the layout:
<?xml version="1.0" encoding="utf-8"?>

<TabHost xmlns:android="http://schemas.android.com/apk/res/android"

android:orientation="vertical"

android:id="@android:id/tabhost"

android:layout_width="fill_parent"

android:layout_height="fill_parent">

<RelativeLayout

android:orientation="vertical"

android:layout_width="fill_parent"

android:layout_height="fill_parent">

<FrameLayout

android:id="@android:id/tabcontent"

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:padding="5dp"

/>

<TabWidget

android:id="@android:id/tabs"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:gravity="bottom"

android:layout_alignParentBottom="true"

/>

</RelativeLayout>

</TabHost>
<pre>

sample code:

"Tutorial_UI_Tab_Res_Buttom_TabActivityActivity"

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com

Leave a Reply