您可以简单地添加以下内容到您的Gradle文件中:dependencies { compile 'com.bm.photoview:library:1.4.1' } 然后,在您的xml布局文件中添加以下代码: 最后,在您的Java代码中实现PhotoView:PhotoView photoView = (PhotoView) findViewById(R.id.img); photoView.enable(); Info info = photoView.getInfo(); Info info = PhotoView.getImageViewInfo(ImageView); ...