Photoview依赖及用法

导入你工作空间的build.gradle

allprojects {
        repositories {
        maven { url "https://jitpack.io" }
        }
        }

导入你工程下的build.gradle

 
  
com.github.chrisbanes:PhotoView:2.1.3

compile 'com.github.chrisbanes.photoview:library:+'
//两个都是


下面添加到你所在的Activity

PhotoView photoView = (PhotoView) findViewById(R.id.photo_view);
photoView.setImageResource(R.drawable.image);

你可能感兴趣的:(网络获取数据方式)