VisibilityPercentageLayout is a layout with a custom listener which gives the visibility percentage of the layout every time it is changed. Pixel visibility listener is also available.