我已经将一些 PNG 格式的图像从 Adobe XD 导入到 Android Studio。这些图像似乎带有额外的填充。我试图用导入图像的大小(在本例中为消息)填充 ImageView。
这是我的xml:
<ImageView
android:src="@drawable/messages"
android:id="@+id/imageView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
tools:layout_editor_absoluteX="79dp"
tools:layout_editor_absoluteY="184dp" />
这些图像显示了填充的样子:
无论如何要让 ImageView 在没有填充的情况下完全环绕图像吗?
感谢您的帮助。