我在Android布局中添加图像。图像顶部和底部没有空白,但当我将图像添加到imageView中时,它会显示图像顶部和底部的白色空白。
因此,如果我想在图像下方立即添加textview,就会出现图像和textview之间的空白。
我不明白为什么imageview
会在图像的顶部和底部显示白色空白。 我没有添加任何类似于android:padding
等的任何东西。
<ImageView
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:src="@drawable/img1" />