Android View Get forceChildrenInvalidateRecursively(View view)

Here you can find the source of forceChildrenInvalidateRecursively(View view)

Description

force Children Invalidate Recursively

Declaration

public static void forceChildrenInvalidateRecursively(View view) 

Method Source Code

//package com.java2s;

import android.view.View;

import android.view.ViewGroup;

public class Main {

    public static void forceChildrenInvalidateRecursively(View view) {
        if (view instanceof ViewGroup) {
            ViewGroup childGroup = (ViewGroup) view;
            int childCnt = childGroup.getChildCount();
            for (int i = 0; i < childCnt; i++) {
                View childView = childGroup.getChildAt(i);
                forceChildrenInvalidateRecursively(childView);
            }/*from  w  ww  .  jav  a  2 s  .com*/
        }
        if (view != null) {
            view.invalidate();
        }
    }
}

Related

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