Advertisement
bit

Untitled

bit
Jun 24th, 2012
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1.  
  2. private class ImageLoaderCallback : IImageUpdated
  3. {
  4. int i = 0;
  5. private ImageView cbImageView = null;
  6.  
  7. public ImageLoaderCallback (Context context, ImageView iv, Uri imageUri)
  8. {
  9. int i = 0;
  10. Drawable newDrawable;
  11.  
  12. cbImageView = iv;
  13. newDrawable = badgeIL.RequestImage ((Uri)imageUri, null);
  14.  
  15. if (newDrawable != null) {
  16. iv.SetImageDrawable (newDrawable);
  17. }
  18. }
  19.  
  20. public void UpdatedImage (System.Uri uri)
  21. {
  22. int i = 0;
  23. Drawable newDrawable;
  24.  
  25. newDrawable = badgeIL.RequestImage ((Uri)uri, null);
  26.  
  27. if (newDrawable != null) {
  28. cbImageView.SetImageDrawable (newDrawable);
  29. }
  30.  
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement