タイトルが言ったように、画像の前後に「スペース」があり、私はそれを望んでいません。
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/fond"
>
<ImageView
android:id="@+id/imageView1"
android:contentDescription="@string/desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/top"
android:layout_gravity="top"
/>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/fond1"
>
</LinearLayout>
</LinearLayout>
ご覧のとおり、背景付きの最初のレイアウトがあります。ImageView は直後にあり、一番上にあるはずですが、そうではありませんでした。2 番目のレイアウトは、画像よりも後になっています。->
最初のレイアウト
--不要なスペース--
画像
--不要なスペース--
2 番目のレイアウト
この「スペース」を削除する方法を知っている人がいたら、ありがとう。