Expiredmind Expiredmind - 1 year ago 94
Android Question

ImageView content loading from to another ImageView

If it possible to write ImageView to another ImageView?

For example:

ImageView image1= (ImageView)findByVie(R.id.image1)
ImageView image2= (ImageView)findByVie(R.id.image2)


// I want to write image from image 1
//to image 2 without loading it again from internet.

Answer Source

Use this:

ImageView image1 = (ImageView)findViewById(R.id.image1);
ImageView image2 = (ImageView)findViewById(R.id.image2);


However, with the way Glide works, it caches images it has loaded so calling Glide.with(context).load(url).into(image2); again would just load the image from the cache, not from the remote server again.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download