2013-08-27 29 views
0

我使用了一個教程,演示瞭如何在異步任務中加載位圖並將它們設置爲圖像視圖,並且在加載位圖之前將教程設置爲黑色代碼將加載位圖設置爲微調進行中對話框

static class DownloadedDrawable extends ColorDrawable { 
private final WeakReference<DownloadImageTask> bitmapDownloaderTaskReference; 

public DownloadedDrawable(DownloadImageTask bitmapDownloaderTask) { 
    super(Color.BLACK); 
    bitmapDownloaderTaskReference = 
     new WeakReference<DownloadImageTask>(bitmapDownloaderTask); 
} 

public DownloadImageTask getBitmapDownloaderTask() { 
    return bitmapDownloaderTaskReference.get(); 
} 
} 

如何更改imageview,以便在加載之前它是進度對話框中的微調器。

在此先感謝。

回答

0

你可以嘗試延遲加載圖像和ListView aquery的Android庫...下面的代碼可以幫助你.....

AQuery aq = new AQuery(mContext); 
aq.id(R.id.image1).image("http://data.whicdn.com/images/63995806/original.jpg"); 

您可以從from this link

下載庫
相關問題