размещение вкладок внизу

1

Привет, я хочу разместить виджет вкладки в нижней части экрана. Я использую приведенный ниже код. с тем, что он отображается сверху, может кто-нибудь знать soution

    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="5dp" 
        android:layout_weight="1" android:gravity="bottom"/>
    <HorizontalScrollView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:gravity="bottom">  
    <TabWidget
        android:id="@android:id/tabs"
        android:gravity="bottom"
        android:layout_width="500dp"
        android:layout_height="wrap_content"
        android:layout_weight="0" 
        android:scrollbars="horizontal"

        />
        </HorizontalScrollView>

Теги:

1 ответ

0

попробуйте этот...

    <RelativeLayout android:id="@+id/LinearLayout02"
                android:orientation="vertical" 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">


        <TabWidget android:id="@android:id/tabs"
            android:layout_width="fill_parent" android:layout_gravity="bottom" android:layout_height="wrap_content" />
        <FrameLayout android:id="@android:id/tabcontent" 
            android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="80dip" 
             >
            <LinearLayout android:id="@+id/LinearLayout01"
                android:orientation="vertical" android:layout_width="fill_parent"
                android:layout_height="fill_parent" android:background="#E0FFFF">
            </LinearLayout>
        </FrameLayout>

    </TabHost>
    </RelativeLayout>
  • 0
    Я пробовал это, но он отображает вкладку сверху. Мне нужно быть внизу
  • 0
    добавить этот код в framelayout ..

Ещё вопросы

Сообщество Overcoder
Наверх
Меню