17 lines
		
	
	
		
			566 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			566 B
		
	
	
	
		
			Plaintext
		
	
	
	
| package com.novelbook.android.utils;
 | |
| 
 | |
| import android.content.Context;
 | |
| import android.util.Log;
 | |
| import android.widget.ImageView;
 | |
| 
 | |
| import com.novelbook.android.netutils.NetUtil;
 | |
| 
 | |
| public class ImageUtil {
 | |
|     public static String TAG= ImageUtil.class.getSimpleName();
 | |
|     public static MyImageLoader loader = new MyImageLoader();
 | |
|     public static void loadImage(Context context,  String url, ImageView imageView){
 | |
|         loader.displayImage(context, NetUtil.getCoverUrl(url), imageView);
 | |
|         //Log.i(TAG,"loading image url: " + NetUtil.getCoverUrl(url));
 | |
|     }
 | |
| }
 |