SherlockGougou / BigImageViewPager

🔥🔥🔥 BigImage ImageView ViewPager 支持超长图、超大图的图片浏览器,优化内存,支持手势放大、下拉关闭、查看原图、加载百分比、保存图片等功能。
Other
2.16k stars 247 forks source link

是否可以考虑增加一个关闭方法? #84

Closed equationl closed 4 years ago

equationl commented 4 years ago

增加支持直接用代码控制退出图片浏览界面。

SherlockGougou commented 4 years ago

有什么具体的使用场景吗?我没想到有哪些场景需要这个。

equationl commented 4 years ago

@SherlockGougou 是这样的,因为我在图片查看界面的长按回调中加了一个删除当前图片的功能,如果删除图片后不退出图片浏览界面,则依然会以缓存继续显示。 我现在的解决方法是在删除图片后模拟点击返回按键来实现图片浏览 Screenshot_20200228-121309_VideoShotPro

equationl commented 4 years ago

5.0.6 在点击和长按回调中增加了上下文,可以直接调用上下文中的 onBackPressed() 或 finish() 实现

SherlockGougou commented 4 years ago

还有什么问题吗?

equationl commented 4 years ago

没问题了...手滑点错了,关闭了吧...