縦方向にのみスクロールする必要がある 1 つの長い画像で構成されるレイアウトを作成しようとしています。
つまり、画面全体の幅を取り、高さいっぱいに伸ばす必要があります。
私のレイアウトはこれを行いますが、画像の前後に奇妙なギャップが生じます。各ギャップは画面の約 2/3 を占め、下にスクロールできます。
ImageView
のみが画面に表示されるようにギャップを削除するにはどうすればよいですか?
私のアクティビティ XML は次のようになります。
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="0dp" >
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="0dp"
tools:context=".HelpActivity" >
<ImageView
android:id="@+id/imageHelp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="0dp"
android:src="@drawable/tutorial_with_text" />
</LinearLayout>
</ScrollView>