Here you can find the source of forceChildrenInvalidateRecursively(View view)
public static void forceChildrenInvalidateRecursively(View view)
//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(); } } }