mercredi 13 mai 2015

Location elements in TabHost (android)

Trying to make clear TabWidget finally happened, but all the elements that are in this layout is lowered to the end, until the end of the screen that are behind TabWidget, what would have been clearer to me now that the going to add a picture:

http://ift.tt/1KIYAPK (i have not 10 reputation to post image)

For TabWidget are members. I tried the margin and padding to rectify the situation, but to no avail

code:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://ift.tt/nIICcg"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <TabHost
        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"
            android:orientation="vertical" 
           >

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

            <TabWidget
                android:id="@android:id/tabs"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:layout_weight="0"
                android:background="#D92a5094"
                android:fadingEdge="none"
                android:showDividers="none" />
        </RelativeLayout>
    </TabHost>
</RelativeLayout>

Aucun commentaire:

Enregistrer un commentaire