登录 注册
当前位置:主页 > 资源下载 > 50 > PhotoView在Android代码中实现旋转图片功能

PhotoView在Android代码中实现旋转图片功能

  • 更新:2024-08-31 15:41:56
  • 大小:864KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:其它 - 开发技术
  • 格式:ZIP

资源介绍

RotatePhotoView Adding Rotation with two finger function on PhotoView Set Up Gradle compile "com.chensl.rotatephotoview:rotatephotoview:1.0.5" and don't forget to add jcenter() to repositories Usage in code you need to enable rotation, by default it's false. PhotoViewAttacher attacher = new PhotoViewAttacher(mImageView); attacher.setRotatable(true); set rotate listener photoView.setOnViewRotateListener(new PhotoViewAttacher.OnViewRotateListener() { @Override public void onRotate(int de