PinchZoom 不适用于scaleType:matrix
您好,我是 Android 新手。我正在开发一个应用程序,其中需要翻转图像(如图库)并缩放图像焦点。当前翻转(使用 viewFlipper em>)并捏合缩放工作正常。
但我想停止翻转最后一张图像。
我已经使用了 ViewFlipper.stopFlipping() ,如果我在 xml 中设置了scaleType:fitXY ,它的工作正常但捏缩放不能使用它。
并且
如果我使用 ScaleType:matrix 捏合缩放可以工作,但是在停止最后一个图像的翻转时,它会剪切最后一个图像。
我已经搜索过很多,但没有得到任何有用的东西。 任何帮助将不胜感激。我已经解决这个问题很多天了。
Hello I am new to Android.I am working on an application in which I need to flip the images(like gallery) and zoom the image in focus.Currently the flipping(using viewFlipper) and pinch to Zoom is working fine.
But I want to stop Flipping on last image.
I have used ViewFlipper.stopFlipping()
and its works fine if I set scaleType:fitXY
in xml but pinchZoom does not work with it.
AND
If I use ScaleType:matrix
the pinch zoom works but on stopping the flipping on last image,it cuts the last image.
I have searched alot but haven't got any thing useful.
Any help will highly be appreciated.I have been in this problem from many days.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
}
}