Results 82 comments of panpf

If you're looking for a zoom image component on Android, take a look at my ZoomImage (https://github.com/panpf/zoomimage) library. It can be used for View and Compose, supports scaling, panning, positioning,...

那你就用容器的方式,把 padding 空出来

> 现象描述 1/当图片两指持续缩小时,两指到达一定的距离后,将不再继续缩小 2/当图片两指放大时,开始两指距离很近,图片不放大,后持续加大两指距离,需要到一定的距离后才能触发图片放大 > > 双指捏和缩放的最小触发距离能不能提供 api 进行设置? 这部分是有些问题,需要再优化一下

> 另: sketchZoomImageView.displayImage() 能新增 Bitmap 和 ByteArray 类型 直接使用 Bitmap 和 ByteArray 想必只有在极个别的场景下才有此需求,这种场景下可以直接使用基础的 ZoomImageView,不要使用集成了图片加载器的

@hdinson 你试试现在的最新版本看还有没有问题

It’s already in the plan, so stay tuned!

The alpha version will be released in about two months, because [Sketch](https://github.com/panpf/sketch/tree/dev-4.0), the image loader that zoomimage relies on, is about to release a full platform version. After the release,...

iOS support is in progress, please follow the progress of the dev branch

这很难,因为有很多计算需要依赖 contentSize,也就是加载到内存的图片的尺寸,contentSize 改变了就必须要重置所有的缩放信息 你可以尝试将现在组件的源码复制一份,然后将 contentSize 设置为 和 containerSize 一样,看看效果 另外我想知道你是什么样的业务场景会有这样的需求