我有一张图片太大了,无法适应屏幕大小,我想让它在屏幕上变得相对较小。如何通过XML更改图像大小?
我尝试过:
<ImageView
android:id="@+id/image"
android:layout_width = "100dp"
android:layout_height= "100dp"
android:scaleType="center"
android:layout_gravity="center_horizontal|bottom"
android:src="@drawable/dashboard_rpm_bottom"
>
</ImageView>
但是图片没有被调整大小...它被裁剪了。 有什么想法吗?