-
PhotoView在Android代码中实现旋转图片功能
资源介绍
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
- 上一篇: Android 图片局部放大效果
- 下一篇: VB等比例放大、缩小图片.rar