Here you can find the source of swapImages(ImageView src, ImageView dst)
static void swapImages(ImageView src, ImageView dst)
//package com.java2s; import android.graphics.drawable.Drawable; import android.widget.ImageView; public class Main { static void swapImages(ImageView src, ImageView dst) { Drawable tempImage = src.getDrawable(); src.setImageDrawable(dst.getDrawable()); dst.setImageDrawable(tempImage); }/* w w w . jav a 2 s . c o m*/ }