Создание прокручиваемого макета списка Android для Android

У меня есть XML-файл с макетом в формате ASCII:

---------------
| ImageView
--------------
| TextView
--------------
| List...
--------------

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:myapp="http://schemas.android.com/apk/res/com.some.app"
 android:orientation="vertical" android:layout_width="fill_parent"
 android:layout_height="fill_parent">
<ImageView 
android:id="@+id/MovieCover"
android:layout_width="100dip"
android:layout_height="100dip"
/> 
 <TextView
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:textSize="16sp"
    android:padding="10dp"
    android:id="@+id/TextHeader"
    android:background="#000000">
</TextView>
<ListView android:id="@+id/ListView02" android:layout_height="wrap_content"
 android:layout_width="fill_parent">
 </ListView>
 </LinearLayout>

У меня проблема с отображением макета, когда мои ImageView и TextView занимают более 3/4 экрана. Как сделать ImageView и TextView прокручиваемыми с помощью отображаемого ListView? На данный момент прокручивается только ListView, и я хочу, чтобы прокручивался весь макет, как если бы они были отдельной страницей.

Как я могу это сделать?

6
задан David C 30 November 2010 в 05:13
поделиться