Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用PhotoView组件在 Android 中缩放和平移图像。但是,当它第一次进入图像所在的页面时,它位于左上角,当我尝试平移或缩放时,它会移动到中间。有没有人有这个组件的经验并且知道如何调整图像的初始位置并防止它跳到屏幕中间?
您可以使用
PhotoViewAttacher attacher; attacher.SetScaleType(ImageView.ScaleType.FitCenter)
ScaleType 的一些选项: