은 내가 RelativeLayout의를 사용
<?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">
<TextView
android:id="@+id/status_header"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:paddingTop="8px"
android:paddingBottom="8px"
android:gravity="center"
android:textColor="@color/header_foreground"
android:background="@color/header_background"
android:text="@string/status_header"/>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/statuspanel"
android:layout_above="@+id/status_footer">
어쩌면 TableLayout을에, 여기에 모든 중간 비트를 넣어
</ScrollView>
<TableLayout
android:id="@+id/status_footer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:paddingTop="4px"
android:paddingLeft="2px"
android:paddingRight="2px"
android:stretchColumns="*"
android:textColor="@color/footer_foreground"
android:background="@color/footer_background">
<TableRow>
<Button
android:id="@+id/status_backbutton"
android:layout_width="0px"
android:layout_weight="1"
android:text="@string/status_backbutton" />
</TableRow>
</TableLayout>
</RelativeLayout>
당신은 내 모든 색상 비트를 용서해야합니다,하지만 당신은 아이디어를 얻을 . 키가있는 RelativeLayout에 alignParent 요소를 사용하고 있다고 생각합니다.
높이를 계산하면 어떨까요? 스크롤 할 수 있으면 높이를 계산할 필요가 없습니다. –
동의하지만, 고정 된 꼬리말을 놓는 데 어려움이 있습니다 – Johann