Skip to content Skip to sidebar Skip to footer

Move Tab Bar To Top Of The Screen In Android

Below I listed the xml code.That shows the tab bar at the bottom of the screen. layout_home.xml Copy

Solution 2:

Stephen use this to move your tab on top of the screen in tour tabhost

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

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

    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="0px"
        android:layout_weight="1" >
    </FrameLayout>


</LinearLayout>

Post a Comment for "Move Tab Bar To Top Of The Screen In Android"