gpt4 book ai didi

android - 使用我们自己的缓存键将图像存储在 picasso 中

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:55:00 25 4
gpt4 key购买 nike

有没有一种方法可以通过指定所使用的缓存键将图像加载到 Picasso 的图像缓存中?

附带说明一下,如果这不可能,我已经进行了必要的更改,但我不确定如何重建 jar。非常感谢任何重建 picasso 的指示。

最佳答案

您可以在 requestCreator 对象上调用 stableKey。

https://square.github.io/picasso/2.x/picasso/com/squareup/picasso/RequestCreator.html#stableKey-java.lang.String-

它会像:Picasso.with(context).load(yourURL).stableKey(yourKey).into(textView);

关于android - 使用我们自己的缓存键将图像存储在 picasso 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25840555/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com