Last active
December 21, 2015 18:29
-
-
Save pwittchen/6347966 to your computer and use it in GitHub Desktop.
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
imageView = (ImageView) findViewById(R.id.iv_image); | |
// ... | |
String imageUrl = "http://www.example.com/image.jpg"; | |
VolleyHelper.init(this); // we can call this method in other place - e.g. in class extending Application class | |
// and refer to application context insted of activity context | |
ImageLoader imageLoader = VolleyHelper.getImageLoader(); | |
imageLoader.get(imageUrl,ImageLoader.getImageListener(mImageView,R.drawable.no_image, R.drawable.error_image)); | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment