I must set the same image to two imageviews in my activity. The image is downloaded from internet and set to the imageview 1 asynchronously by a method that takes as parameter the url of the picture and one imageview.
Can I synchronize the source of the imageview 2 with imageview 1 (i.e. as soon as the picture is set in image 1, it also set it to image 2)?
You can change the download method so that it accepts a list or an array of ImageView or varargs:
download(String url, ImageView... imageViews)Upd: synchronization of
ImageViewscan be done over subclassing it.And set the listener: