Итак, я хотел иметь нижнюю кнопку, чтобы она отображалась на всех вкладках, но я не могу сделать ее доступной в нижней части экрана каждой вкладки. У меня есть только первая вкладка, заполненная элементами редактирования текста и счетчиками. Но кнопка не отображается даже после установки прокрутки, так как все элементы занимают больше, чем размер экрана. Вот XML:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<TabHost
android:id="@+id/personalfiletab"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingBottom="56dp">
<ScrollView android:id="@+id/ScrollView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout
android:id="@+id/pessoal_tab"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true">
<include android:id="@+id/first" layout="@layout/ecra_editpersonalfile_infoform" />
</TableLayout>
<TableLayout android:id="@+id/morada__contacto_tab"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true">
<include android:id="@+id/first" layout="@layout/ecra_editpersonalfile_moradacontactoform" />
</TableLayout>
<TableLayout
android:id="@+id/profissional_tab"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true">
<include android:id="@+id/first" layout="@layout/ecra_editpersonalfile_infoproform" />
</TableLayout>
<TableLayout
android:id="@+id/documentacao_tab"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true">
<include android:id="@+id/first" layout="@layout/ecra_editpersonalfile_documentacaoform" />
</TableLayout>
</LinearLayout>
</ScrollView>
</FrameLayout>
</LinearLayout>
</TabHost>
<Button
android:text="submit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/submitprofileButton">
</Button>
</LinearLayout>
Но кнопка не отображается внизу экрана в каждой вкладке ...