我使用 Chris Bane 的PhotoView来显示 ImageViews。放大后,我无法缩小到图像的原始大小。好像边框太小了,但还有其他解释吗?
xml photoview 设置:
<com.github.chrisbanes.photoview.PhotoView
android:id = "@+id/ScreenshotPhotoView"
android:src = "@drawable/LogoImg"
android:layout_marginTop = "40dp"
android:layout_marginBottom = "40dp"
android:layout_width="320dp"
android:layout_height="180dp"
android:layout_gravity = "center_horizontal"
android:scaleType = "fitCenter"
/>