Android View Get findUsingTag(View v, int resourceId)

Here you can find the source of findUsingTag(View v, int resourceId)

Description

find Using Tag

Declaration

public static <T> T findUsingTag(View v, int resourceId) 

Method Source Code

//package com.java2s;
import android.view.View;

public class Main {
    public static <T> T findUsingTag(View v, int resourceId) {
        Object result = v.getTag(resourceId);
        if (result == null) {
            result = (T) v.findViewById(resourceId);
            v.setTag(resourceId, result);
        }/*from ww  w .  j  a v a2  s.co  m*/
        return (T) result;
    }
}

Related

  1. changeViewState(View view, MotionEvent event)
  2. findInParents(View view, Class parentClass)
  3. getRandomView(int size)
  4. getname(Context mContext, View v)
  5. forceChildrenInvalidateRecursively(View view)