Android View Check isViewFromClass(Class type, View currentViewTocross)

Here you can find the source of isViewFromClass(Class type, View currentViewTocross)

Description

is View From Class

Declaration

@SuppressWarnings({ "unchecked", "rawtypes" })
    public static boolean isViewFromClass(Class type,
            View currentViewTocross) 

Method Source Code

//package com.java2s;

import android.view.View;

public class Main {
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public static boolean isViewFromClass(Class type,
            View currentViewTocross) {

        if (type.isAssignableFrom(currentViewTocross.getClass())) {
            return true;
        }/*from  ww w  .  j  a v a2 s.  c  om*/
        return false;
    }
}

Related

  1. isAndroidOverScrollEnabled(View view)
  2. isImageView(View currentViewTocross)
  3. isPointInsideView(float x, float y, View view)
  4. isRadioButtonView(View currentViewTocross)
  5. isScrollView(View v)