整理したいレイアウトがあります。コードは次のとおりです:(部分)
<RelativeLayout
android:id="@+id/RelativeLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true" >
<TableLayout
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#d9d9d9"
android:clickable="true"
android:stretchColumns="*" >
</TableLayout>
</ScrollView>
<LinearLayout
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_below="@+id/scrollView1"
android:background="@android:color/background_light"
android:orientation="vertical" >
<TextView
android:id="@+id/showingXoutOfY"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/XOutOfY"
android:textColor="@color/blue" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/copyright"
android:textColor="@android:color/black" />
</LinearLayout>
</RelativeLayout>
をScrollView
画面全体に表示したいのですが、下部に がLinearLayout
あるためのスペースを残したいです。TextViews
ご覧のとおり、それらを a の内側にラップして、 を上に、を下RelativeLayout
に配置しましたが、それでも. にネストされているは動的に入力されます。ScrollView
LinearLayout
ScrollView
TableLayout
ScrollView