Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 804 Bytes

IMAGE_LOADER.md

File metadata and controls

14 lines (11 loc) · 804 Bytes

ImageLoader

In order to not be limited with using any of the specific libraries to upload images, we have brought this process to a separate ImageLoader interface. By implementing it on your side, you get an absolute freedom in the process of downloading and processing of the image before it is displayed. ImageLoader is a required parameter in DialogsList and MessagesList components, where images often appear in the UI.

For example, to load images with Picasso, you just need to add only one line 😉

ImageLoader imageLoader = new ImageLoader() {
   @Override
   public void loadImage(ImageView imageView, String url) {
       Picasso.with(MessagesListActivity.this).load(url).into(imageView);
   }
};