make child view invisible when colapse child views

make child view invisible when colapse child views,especially when child view is bigger than parent.