Вот как я вкладываю различные виды. из этого примера вы можете видеть, что я использую ScrollView на самом низком уровне, чтобы представление могло легко прокручиваться.
Затем я использую линейную раскладку поверх прокрутки, чтобы можно было просто размещать виджеты на экране строка за строкой.
Наконец, я использую RelativeLayout, чтобы я мог использовать параметр layout_alignParentBottom и сделать так, чтобы кнопка отображалась в нижней части представления.
<?xml version="1.0" encoding="utf-8"?>
<!-- use ScrollView incase it doesn't fit on small display -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:background="#fffcb95a">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- Hello World -->
<TextView android:text="Hello World"
android:id="@+id/TextViewHeaderMessage1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="8dip"
android:textAppearance="?android:attr/textAppearanceLarge"
android:gravity="center_horizontal"
android:paddingBottom="30dip"
android:textColor="#6a7349" />
<RelativeLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<!-- "OK" BUTTON -->
<Button android:text="OK"
android:id="@+id/ok_button"
android:layout_width="150dip"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>
</LinearLayout>
</ScrollView>