自己封装的安卓手势识别器工具类,这个demo是使用这个手势识别器实现的超级图片ImageView控件,支持单指点击、双击、长按、移动;支持双指缩放、旋转、平移等操作。

安卓手势识别--打造超级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'
}

 

相关文章:

  • 2021-12-09
  • 2021-12-10
  • 2021-10-01
  • 2021-09-27
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-23
  • 2021-07-09
  • 2021-11-14
  • 2021-10-02
相关资源
相似解决方案