
回复
1.在项目根目录下的build.gradle文件中,
2.在entry模块的build.gradle文件中,
组件主要基于ScaleGestureDetector功能,增加手势检测器扩展框架。
项目中封装有各种手势检测框架,使用中需要根据接收的 onTouchEvent,侦测由多个触点(多点触控)引发的变形手势。callback 方法XXXGestureDetector.OnScaleGestureListener会在特定手势事件发生时通知用户。该类仅能和Touch事件引发的 TouchEvent配合使用。
使用该类,需要为你的Component创建XXXGestureDetector实例。
确保在 onTouchEvent(Component component, TouchEvent event)方法中调用onTouchEvent (MotionEvent)。
RotateGestureDetector(旋转手势检测)
ScaleGestureDetector(缩放手势检测)
MoveGestureDetector(滑动手势检测)
ShoveGestureDetector(推动手势检测)
CodeCheck代码测试无异常
CloudTest代码测试无异常
病毒安全检测通过
当前版本demo功能与原组件基本无差异
This project is licensed with the 2-clause BSD license.