この質問は何度も聞かれましたが、どれも役に立ちませんでした。
Android は、 の画像の 4 辺すべてに余分な空白を追加しImageView
ます。これは、画面サイズが異なるデバイスでも同じです。画像の解像度も変更しようとしましたが、役に立ちませんでした。
参考までに、ここに私のxmlコードがあります:
<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="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".Starter" >
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:contentDescription="cat"
android:scaleType="fitXY"
android:src="@drawable/splash" />
</LinearLayout>
また、画像がどのように見えるかのスクリーンショットも添付されています。
これらのスペースを削除するにはどうすればよいですか?
ありがとう。