protected void postLayoutChild ( final int dataIndex ) { if ( ! mContainer . isDynamic ( ) ) { boolean visibleInLayout = ! mViewPort . isClippingEnabled ( ) || inViewPort ( dataIndex ) ; ViewPortVisibility visibility = visibleInLayout ? ViewPortVisibility . FULLY_VISIBLE : ViewPortVisibility . INVISIBLE ; Log . d ( Log . SUBSYSTEM . LAYOUT , TAG , "onLayout: child with dataId [%d] viewportVisibility = %s" , dataIndex , visibility ) ; Widget childWidget = mContainer . get ( dataIndex ) ; if ( childWidget != null ) { childWidget . setViewPortVisibility ( visibility ) ; } } }
Do post exam of child inside the layout after it has been positioned in parent