Поместите верхний и нижний колонтитулы в Android - PullRequest
0 голосов
/ 22 ноября 2011

Я хотел разместить верхний и нижний колонтитулы на TabHost, который я пытаюсь, но это не показывает никаких изменений в интерфейсе, вот мой код

<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<LinearLayout 
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <Button 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button01"
        />
</LinearLayout>
<TabHost android:layout_width="fill_parent"
    android:layout_height="fill_parent" 
    android:id="@android:id/tabhost">
    <LinearLayout android:id="@+id/LinearLayout01"
        android:orientation="vertical" android:layout_height="fill_parent"
        android:layout_width="fill_parent">
        <TabWidget android:id="@android:id/tabs"
            android:layout_height="wrap_content" android:layout_width="fill_parent"></TabWidget>
        <FrameLayout android:id="@android:id/tabcontent"
            android:layout_height="fill_parent" android:layout_width="fill_parent"></FrameLayout>
    </LinearLayout>

</TabHost></RelativeLayout>

Пожалуйста, помогите мне, я хочу поместить 2 кнопки и заголовок в верхний колонтитул и 4 кнопки в нижний колонтитул

Спасибо

Абхишек

1 Ответ

0 голосов
/ 22 ноября 2011

Вам также нужно использовать макет выше и макет ниже свойств !!

...