-5

Possible Duplicate:
Android: Tabs at the BOTTOM

I'd like to place the Tabs of tab layout in the buttom of the screen, iPhone like. How can I do so?

Community
  • 1
  • 1
eyal
  • 2,379
  • 7
  • 40
  • 54

1 Answers1

1

Refer to the below xml ... Now If you want to put your tabs to bottom just move your tabwidget below Framelayout (relativiely) as tabwidget and Framelayout are inside relative layout.

    <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">
        <RelativeLayout
            android:layout_width="fill_parent" android:layout_height="fill_parent">
            <TabWidget android:id="@android:id/tabs"
                android:layout_alignParentBottom="true"
                android:background="#FFFFFF"
                android:layout_width="fill_parent" android:layout_height="wrap_content"
                android:layout_marginLeft="0dip" android:layout_marginRight="0dip" />
            <FrameLayout android:id="@android:id/tabcontent"
                android:background="#00FFFF"
                android:layout_width="fill_parent" android:layout_height="wrap_content" />
        </RelativeLayout>
    </TabHost>

</LinearLayout>
success_anil
  • 3,659
  • 3
  • 27
  • 31