24 lines
		
	
	
		
			719 B
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			719 B
		
	
	
	
		
			Plaintext
		
	
	
	
|  | package com.novelbook.android.utils; | ||
|  | 
 | ||
|  | import android.app.Application; | ||
|  | import android.content.Context; | ||
|  | import android.util.Log; | ||
|  | import android.widget.ImageView; | ||
|  | 
 | ||
|  | import com.bumptech.glide.Glide; | ||
|  | import com.novelbook.android.MyApp; | ||
|  | import com.novelbook.android.R; | ||
|  | 
 | ||
|  | public class MyImageLoader extends com.youth.banner.loader.ImageLoader { | ||
|  |         @Override | ||
|  |         public void displayImage(Context context, Object path, ImageView imageView) { | ||
|  |             try { | ||
|  | 
 | ||
|  |                 Glide.with(MyApp.applicationContext).load((String) path).error(R.drawable.googleg_standard_color_18).into(imageView); | ||
|  |             }catch (Exception e){ | ||
|  |                 Log.e("MyImageLoader", "displayImage: ",e ); | ||
|  |             } | ||
|  |         } | ||
|  |     } | ||
|  | 
 |