自己封装的安卓手势识别器工具类,这个demo是使用这个手势识别器实现的超级图片ImageView控件,支持单指点击、双击、长按、移动;支持双指缩放、旋转、平移等操作。
代码很简单,https://github.com/qiantanlong/YhzGestureDetector ,这是GitHub地址。包含手势识别的工具类。
android studio中添加依赖使用的方法:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.qiantanlong:YhzGestureDetector:v1.1'
}