Advertisement
Guest User

Untitled

a guest
May 30th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Glide.with(getApplicationContext()).load(imgUrl).asBitmap().into(new SimpleTarget<Bitmap>(250, 250) {
  2.  
  3. @Override
  4. public void onResourceReady(Bitmap resource, GlideAnimation glideAnimation) {
  5. Log.i(TAG, "success");
  6. dlg.dismiss();
  7. blurImageView.setImageBitmap(resource);
  8. circularImageView.setImageBitmap(resource);
  9. // runBlurryThread(blurImageView);
  10. }
  11.  
  12. @Override
  13. public void onLoadFailed(Exception e, Drawable errorDrawable) {
  14. super.onLoadFailed(e, errorDrawable);
  15. dlg.dismiss();
  16. Log.i(TAG, "failed");
  17. }
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement