Closed iamnotacoder-djs closed 5 years ago
@Override
public void loadMedia(Context context, final ImageView imageView, final SuccessCallback callback)
{
Glide.with(context).load(image.getImage_file())
.asBitmap().fitCenter().into(new SimpleTarget<Bitmap>()
{
@Override
public void onResourceReady(Bitmap bitmap, GlideAnimation<? super Bitmap> glideAnimation)
{
imageView.setImageBitmap(bitmap);
callback.onSuccess();
}
});
}
There is GlideImageLoader which is based on Glide library. It's was added in #73. So now it's available in separate module.
Hi, Thanks a lot for your library. It really helps. But I have a strange error and dont know how to handle it.(Sry for duplicate of ^that text) Console sometimes returns me a fatal error with "ImageFragment.onSaveInstanceState getBitmap()' on a null"... Plus. I can not zoom picture. Initialization here: