2013-08-21 50 views
1

我正在使用scrollview在nxn矩陣中顯示圖像(屬性圖像),但需要更多時間。到我使用通用圖像加載器Android - 如何將圖像加載到屏幕上可見的滾動視圖中?

 config = new ImageLoaderConfiguration.Builder(getApplicationContext()) 
     .threadPoolSize(1) 
     .discCacheExtraOptions(225,145, CompressFormat.PNG, 100,null) 
     .denyCacheImageMultipleSizesInMemory() 
     .build(); 
     imageLoader = ImageLoader.getInstance(); 
     imageLoader.init(config); 
     options = new DisplayImageOptions.Builder() 
      .cacheOnDisc(true) 
      .imageScaleType(ImageScaleType.IN_SAMPLE_POWER_OF_2) 
      .bitmapConfig(Bitmap.Config.RGB_565) 
      .build(); 

,我使用此加載圖像作爲

imageLoader.displayImage(android.os.Environment.getExternalStorageDirectory()+"/SaintGobain/Images/"+projectDetail.get(dbHelper.thumb_image_path), thumb, options); 

我有更多的圖片來顯示像10列並且在各列15至20的圖像。所以我想要可見的圖像,必須首先加載視圖的其餘部分才能加載。 Plz指導我如何自定義通用圖像加載器?

回答

相關問題