当我使用 Android Vector Asset Studio 导入矢量图像时,它会变形,即使在预览中也是如此。我尝试使用的矢量之一是直接来自 Material 网站的照片轮廓。
它应该是这样的:
这是它在 Android 中的样子:
这是另一个示例,它应该是什么样子以及它在 Android 中的外观:
如果您想要任何其他信息,请告诉我。任何帮助将不胜感激。
最佳答案
使用 <androidx.appcompat.widget.AppCompatImageView
而不是 ImageView
并使用 app:srcCompat
安装于 android:src=
关于android - 矢量图像在 Android 中显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55272641/