我正試圖在我的應用程序中加載和緩存圖像以顯示在UITableView上。 原來的概念是這樣的: if (image in cache){
show cached image;
}else{
if (image in file){
show filed image;
}else{
load image from web asynchronousl
我正在使用Glide在Android上下載和緩存圖像。除了我不想將位圖直接加載到ImageView這一事實之外,一切運作良好,我不想擁有淡入淡出的動畫,也沒有圖像佔位符。 我想要的是創建一個全局方法,它將幫助我在整個應用程序中下載圖像。 public class MyApp extends Application {
public static void downloadImage(S