[英]Rotate & Scale a gif animation using 2 finger gesture in Android using Fresco Library
How to Rotate & Scale a gif animation using 2 finger gesture in Andriod using Fresco Library. 如何使用壁画库在Andriod中使用2手指手势旋转和缩放gif动画。
Hi I'm trying to perform Translate, Scale and Rotate on View (FrameLayout) in android. 嗨,我正在尝试在android中对视图(FrameLayout)执行平移,缩放和旋转。
In brief, I've a Fresco's SimpleDraweeView inside FrameLayout, as Fresco is not supporting Matrix transformations, so as an alternative I put that in FrameLayout and doing Translation, Rotation and Scaling. 简而言之,由于Fresco不支持Matrix转换,因此我在FrameLayout中具有Fresco的SimpleDraweeView,因此,我将其放入FrameLayout中并进行平移,旋转和缩放。
The transformation is going out of screen... 转换即将出现...
Any reference or code samples will be helpful. 任何参考或代码示例都将有所帮助。
Here is a sample library Fresco has released covering this case: https://github.com/facebook/fresco/tree/master/samples/zoomable/src/main/java/com/facebook/samples/zoomable 这是Fresco发布的涵盖此情况的示例库: https : //github.com/facebook/fresco/tree/master/samples/zoomable/src/main/java/com/facebook/samples/zoomable
which uses 使用
https://github.com/facebook/fresco/tree/master/samples/gestures/src/main/java/com/facebook/samples/gestures https://github.com/facebook/fresco/tree/master/samples/gestures/src/main/java/com/facebook/samples/gestures
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.