This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GlideModule | |
public class ProgressAppGlideModule extends AppGlideModule { | |
@Override | |
public void registerComponents(Context context, Glide glide, Registry registry) { | |
super.registerComponents(context, glide, registry); | |
OkHttpClient client = new OkHttpClient.Builder() | |
.addNetworkInterceptor(new Interceptor() { | |
@Override | |
public Response intercept(Chain chain) throws IOException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GlideImageLoader { | |
private ImageView mImageView; | |
private ProgressBar mProgressBar; | |
public GlideImageLoader(ImageView imageView, ProgressBar progressBar) { | |
mImageView = imageView; | |
mProgressBar = progressBar; | |
} |