ギャラリー内のScrollViewsなどについていくつか質問がありましたが、ここでは正反対のものがあり、解決策が見つかりません。
問題:1つのScrollViewに複数のギャラリーがあります。ギャラリーの水平スクロールは正常に機能しますが(ここでは何も変更されていません。SDKの標準のGalleryクラスのみ)、アクティビティ全体のScrollViewの垂直スクロールは機能しません。ギャラリーがタッチイベントを傍受しているようです。これを解決するのを手伝ってくれませんか。
これは私のレイアウトxmlです:
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollview_home"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<RelativeLayout
android:id="@+id/layout_home"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
...>
<Button
.../>
<Gallery
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gallery_..."
android:layout_width="fill_parent"
android:layout_height="wrap_content"
... />
<TextView
... />
</RelativeLayout>//this layout is repeated few times, because I have multiple galleries
</RelativeLayout>
</ScrollView>
ありがとう!