0

我使用https://github.com/MikeOrtiz/TouchImageView在我的应用程序中显示平移缩放功能。

我想在图像的初始显示中强加 fitxy 行为。当前设置可以很好地缩放图像的宽度,但不能很好地显示图像的高度。通常您可以在 imageview 的顶部和底部看到黑色部分。

提前致谢。

4

1 回答 1

0

使用 Matrix.setRectToRect http://developer.android.com/reference/android/graphics/Matrix.html#setRectToRect(android.graphics.RectF , android.graphics.RectF, android.graphics.Matrix.ScaleToFit) 与 stf ==充满

于 2013-10-01T13:58:49.890 回答