Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

保存图片toast #187

Closed
Lancerer opened this issue Feb 28, 2023 · 9 comments
Closed

保存图片toast #187

Lancerer opened this issue Feb 28, 2023 · 9 comments

Comments

@Lancerer
Copy link

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

@SherlockGougou
Copy link
Owner

SherlockGougou commented Feb 28, 2023 via email

@Lancerer
Copy link
Author

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

@SherlockGougou
Copy link
Owner

SherlockGougou commented Feb 28, 2023 via email

@SherlockGougou
Copy link
Owner

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

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

@SherlockGougou
Copy link
Owner

// 下载过程回调,可自定义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
Copy link
Owner

androidx-7.1.5 已发布。

@Lancerer
Copy link
Author

Lancerer commented Mar 1, 2023

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

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

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

@SherlockGougou
Copy link
Owner

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

@Lancerer
Copy link
Author

Lancerer commented Mar 1, 2023

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

OK了,迅速啊老哥

@Lancerer Lancerer closed this as completed Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants