recursively sets selected flag for all views contained in viewgroup . very useful for something like settings screens , when you need to select/unselect all controls inside a layout via switch , radiobutton or checkbox concode_field_sep PlaceHolder placeHolder concode_field_sep void setEnabledForAllChildrenRecursively concode_elem_sep void setVisibility
void function ( final ViewGroup arg0 , final boolean arg1 ) { for ( int loc0 = 0 ; loc0 < arg0 . getChildCount ( ) ; loc0 ++ ) { final View loc1 = arg0 . getChildAt ( loc0 ) ; if ( loc1 == null ) continue ; loc1 . setSelected ( arg1 ) ; if ( loc1 instanceof ViewGroup ) { setSelectedForAllChildrenRecursively ( ( ViewGroup ) loc1 , arg1 ) ; } } }