0
点赞
收藏
分享

微信扫一扫

安卓支持手势缩放图片

AbrahamW 2022-02-22 阅读 103


背景

显示图片时,希望支持手势缩放图片.

解决方案

  1. 添加依赖
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  1. 使用
<com.github.chrisbanes.photoview.PhotoView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/ic_launcher"/>



举报

相关推荐

0 条评论