-6

Possible Duplicate:
Android: Tabs at the BOTTOM

Is possible in android to put in TabActivity tab icons at the bottom of the screen ? By default tab icon are at the top. How to change this ?

Community
  • 1
  • 1
Damir
  • 54,277
  • 94
  • 246
  • 365

1 Answers1

1

Create your Tab XML as `

<?xml version="1.0" encoding="utf-8"?>
<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">

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="5dp">

        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:padding="5dp"
            android:layout_weight="1"/>

        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="0"/>

    </LinearLayout>

</TabHost>

`

Sandroid
  • 328
  • 1
  • 10
  • 19