private static void applyTypeface ( ViewGroup viewGroup , TypefaceCollection typefaceCollection ) { for ( int i = 0 ; i < viewGroup . getChildCount ( ) ; i ++ ) { View childView = viewGroup . getChildAt ( i ) ; if ( childView instanceof ViewGroup ) { applyTypeface ( ( ViewGroup ) childView , typefaceCollection ) ; } else { applyForView ( childView , typefaceCollection ) ; } } }
Apply typeface to all ViewGroup childs