private void ChargeInit(Context context) { if (Glide.Get(context) == null) { throw new ExceptionInInitializerError(LoadEngine.INITIALIZE_ENGINE_ERROR); } }
public override void DisplayCameraItem(ImageView imageView) { ChargeInit(imageView.Context); Glide.With(imageView.Context).Load(img_camera).CenterCrop().Error(img_camera).Placeholder(img_camera).DontAnimate().Into(imageView); }
public override void DisplayImage(string path, ImageView imageView) { ChargeInit(imageView.Context); Glide.With(imageView.Context).Load(path).CenterCrop().Error(img_loading).Placeholder(img_loading).DontAnimate().Into(imageView); }