私はそのような問題を抱えています:私はその下にMapViewとListViewを持っています。マップサイズは固定。しかし、ビューを一緒にスクロールする必要があります。どういうわけか、非スクロールマップと1項目リストの問題を処理しましたが、別の問題が発生しました-ScrollViewでは、ListViewの下に多くの空きスペースがあり、それを取り除くことができません。リストを「wrap_content」に設定すると役立つと思いましたが、そうではありませんでした。何をすべきか?これが私のレイアウトです:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >
    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/scrollView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:fillViewport="true">
        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >
        <com.package.MyMapView
                     android:layout_width="match_parent"
                     android:layout_height="100dp"
                     android:clickable="true"
                     android:apiKey="key"
                     android:id="@+id/map"
                     android:layout_gravity="top"/>
        <ListView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/channelsList" >
        </ListView>
    </LinearLayout>
    </ScrollView>
</LinearLayout>