app: compile 'com.github.chrisbanes.photoview:library:+' compile 'com.github.chrisbanes:PhotoView:2.1.3' 工程里:allprojects { repositories { jcenter() maven {url "https://jitpack.io"} } }xml:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <com.github.chrisbanes.photoview.PhotoView android:id="@+id/ima" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout>
图片里放大缩小拖动
最新推荐文章于 2022-12-20 17:30:40 发布