Android ImageView Set swapImages(ImageView src, ImageView dst)

Here you can find the source of swapImages(ImageView src, ImageView dst)

Description

swap Images

Declaration

static void swapImages(ImageView src, ImageView dst) 

Method Source Code

//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*/
}

Related

  1. loadAnimation(ImageView imageView, Animation animation, int animationResource)
  2. loadScaledPicture(String image_path, ImageView target)