Here you can find the source of isImageView(View currentViewTocross)
public static boolean isImageView(View currentViewTocross)
//package com.java2s; import android.view.View; import android.widget.ImageView; public class Main { public static boolean isImageView(View currentViewTocross) { if (ImageView.class.isAssignableFrom(currentViewTocross.getClass())) { // Log.d("CurrentView", "ImageView"); return true; }//w w w .j av a2 s .c o m return false; } }