public void setImagePath(String path, long limitSize, boolean anim) { ImageDownloadManager manager = ImageDownloadManager.GetInstance(); if (mUrl != null) manager.cancelLoad(mUrl); if (mPath != null) { if (mPath.equals(path)) { return; } else { manager.cancelLoad(mPath); } } animate = anim; mPath = path; this.setImageBitmap(null); // this.setBackgroundDrawable(this.getResources().getDrawable(R.drawable.image_default)); AFLog.d("start load in cache view: " + path); manager.loadImagePath(this, path, limitSize); }