PhotoViewer icon indicating copy to clipboard operation
PhotoViewer copied to clipboard

一个 **无侵入式** 仿微信朋友圈的图片查看器,使用超级简单!

Results 22 PhotoViewer issues
Sort by recently updated
recently updated
newest added

在图片加载未出来,loading的时候,直接返回到activity,在返回上一个界面,会崩溃。 ![image](https://user-images.githubusercontent.com/32117640/115988057-79d71080-a5ea-11eb-80a8-8a7e9d985a2e.png) mIv空了

前后两次调用的话,前面一次设置的一些回调函数或类变量,如果后面一次没覆盖则前面一次设置的回调函数或变量会同样在后面的调用中起作用。又比如前面一次调用完后 currentPage 变量会暂留,如果后面一次调用的是单张图片而有没有设置.setCurrentPage(),那么展示单张图片时的指示器会是5/1,6/1之类的。建议在 PhotoViewer类中监听预览结束,结束后初始化各个回调接口和变量。

是不是不再维护了?

![image](https://user-images.githubusercontent.com/12198830/103395057-1d497480-4b67-11eb-8bab-4cb72b790f81.png)

回退时候的缩放动画应该加入裁剪的算法。如果实际展示的宽高比例与最终缩放的宽高比例不一致,那么就比较奇怪

使用leakcanary,监听到设置 setOnPhotoViewerDestroyListener后报内存泄漏。 PhotoViewer为object,新建出来的监听里调用了外部传入的监听,然而却没有释放的方法,造成PhotoViewer一直持有外部传入的监听对象

作者: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method e.t.a.c.e, parameter data at e.t.a.c.e(SourceFile:3) umeng统计到如下崩溃日志 ,不知道是什么原因? 麻烦作者看下是什么原因呢? 感谢!

#214908 kotlin.KotlinNullPointerException com.wanglu.photoviewerlibrary.PhotoViewer.getItemView(PhotoViewer.kt:137)