How to load an ImageView from URL in Android
The best solution to do it we prefer to use the library, because if it it can keep the image in cache and will not be reloading image every time it request.
Introduction
Images add much-needed context and visual flair to Android applications. Picasso allows for hassle-free image loading in your application—often in one line of code!
Picasso.get().load("http://i.imgur.com/DvpvklR.png").into(imageView);
Many common pitfalls of image loading on Android are handled automatically by Picasso:
Handling ImageView recycling and download cancelation in an adapter.
Complex image transformations with minimal memory use.
Automatic memory and disk caching.
No comments:
Post a Comment