isVisibleOnScreen

fun View.isVisibleOnScreen(): Boolean

Check if the view is visible on the screen

Ref: https://stackoverflow.com/questions/14039454/how-can-you-tell-if-a-view-is-visible-on-screen-in-android