ImageView と TextView に問題があります。ImageView のレイアウトの幅と高さを「fill_parent」に設定すると、その下に表示したい TextView が画面から押し出されるという問題があります。
画面の残りの部分を埋めるには ImageView が必要です。そのため、高さと幅に「fill_parent」を使用しています。幅だけに「fill_parent」を、高さに「wrap_content」を使用しようとしましたが、両方に「wrap_content」を使用しているかのように、画像全体のサイズが変更されます(小さくなります)。
ここに私のXMLがあります:
<?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"
android:background="@drawable/background_x_high"
android:orientation="vertical" >
<Gallery
android:id="@+id/Gallery01"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
</Gallery>
<ImageView
android:id="@+id/ImageView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:paddingBottom="8dp"
android:paddingTop="20dp"
android:layout_below="@+id/Gallery01" >
</ImageView>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/Textgoeshere"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="15sp"
android:textColor="#CCCCCC"
android:typeface="serif"
android:textAlignment="gravity"
android:layout_below="@+id/ImageView01" />
</RelativeLayout>