-1
我试图在imageview中完全适合图像。我曾尝试scaletype(“fitXY”),也尝试过centercrop。但我总是注意到imageview没有完全填充。 example将图像拟合到ImageView
是否有某种边界我必须调整或类似的东西? 我的目标是从这些矩形中制作一个迷宫。
<ImageView
android:layout_width="300dp"
android:layout_height="300dp"
android:id="@+id/zwarte_balk"
android:src="@mipmap/zwarte_balk"
android:scaleType="fitXY"
android:layout_marginTop="0dp"
android:layout_marginLeft="0dp"/>
请分享一些代码。只有你提供的信息有点难以发现问题。 – Mauker
将您的缩放类型更改为中心 – Ahmed
@Ahmed中心无法正常工作。它只会使图像在图像视图中变小。 – sateeprikker