我是Camera API的新手,并构建了一个简单的相机应用程序,我已经构建了基本的相机工作布局,但我缺少结合缩放功能的线索,我希望应用程序及其代码库尽可能简单,I want to implement swipe up to zoom in and swipe down to zoom out feature
。我已经实现了捕获图像的基本相机 - 应该添加什么才能实现所需的功能(滑动到缩放手势)?提前感谢。
您使用SimpleOnGestureListener检测swipeUp事件并相应地使用缩放功能。您可以参考此How to detect swipe direction between left/right and up/down