SherlockGougou / BigImageViewPager

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

保存图片toast #187

Closed Lancerer closed 1 year ago

Lancerer commented 1 year ago

关闭保存图片成功的toast可否提供接口自定义显示或者不显示?

SherlockGougou commented 1 year ago

可 晚上加

Lancerer @.***>于2023年2月28日 周二19:47写道:

关闭保存图片成功的toast可否提供接口自定义显示或者不显示?

— Reply to this email directly, view it on GitHub https://github.com/SherlockGougou/BigImageViewPager/issues/187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIXE2ORSUOZI33IQIIYDYDWZXQWTANCNFSM6AAAAAAVKTWAGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Lancerer commented 1 year ago

老哥,现在还有一种特殊的情况,就是实际上是gif但是他的后缀名变成了jpg,这时候点击放大查看的时候好像图片会加载不出来,一直处于loading状态

SherlockGougou commented 1 year ago

你可以知道每一张图片的真实格式吗?

Lancerer @.***>于2023年2月28日 周二19:58写道:

老哥,现在还有一种特殊的情况,就是实际上是gif但是他的后缀名变成了jpg,这时候点击放大查看的时候好像图片会加载不出来,一直处于loading状态

— Reply to this email directly, view it on GitHub https://github.com/SherlockGougou/BigImageViewPager/issues/187#issuecomment-1448057833, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIXE2IDX47PAXXOLMY6UO3WZXR6LANCNFSM6AAAAAAVKTWAGM . You are receiving this because you commented.Message ID: @.***>

SherlockGougou commented 1 year ago

老哥,现在还有一种特殊的情况,就是实际上是gif但是他的后缀名变成了jpg,这时候点击放大查看的时候好像图片会加载不出来,一直处于loading状态

这种情况,可以提供一组url吗?

SherlockGougou commented 1 year ago
// 下载过程回调,可自定义toast,如果不设置此回调会使用默认的toast内容
.setDownloadListener(new OnDownloadListener() {
    @Override
    public void onDownloadStart(Activity activity, int position) {
        Toast.makeText(activity, "开始下载", Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onDownloadSuccess(Activity activity, int position) {
        Toast.makeText(activity, "下载成功", Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onDownloadFailed(Activity activity, int position) {
        Toast.makeText(activity, "下载失败", Toast.LENGTH_SHORT).show();
    }
})

接下来发布的版本增加了toast的自定义接口,按照上述方式即可。

SherlockGougou commented 1 year ago

androidx-7.1.5 已发布。

Lancerer commented 1 year ago

老哥,现在还有一种特殊的情况,就是实际上是gif但是他的后缀名变成了jpg,这时候点击放大查看的时候好像图片会加载不出来,一直处于loading状态

这种情况,可以提供一组url吗?

你可以用它测试一下 https://s3.bmp.ovh/imgs/2023/03/01/219a4fef0bae6867.jpg

SherlockGougou commented 1 year ago

androidx-7.1.6 修复了,可以试一下。

Lancerer commented 1 year ago

androidx-7.1.6 修复了,可以试一下。

OK了,迅速啊老哥