0
这个问题已被多次询问,但没有一个答案有帮助。ImageView所有四面的额外空白
Android增加了在图像的所有四边在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>
还附上了图片的样子截图。
如何删除这些空间?
谢谢。