title: Is there any event fired when android View becomes visible within App?
body: <p>My App contains multiple views (scrollable), one of them is CustomView ( extends View), is there any android event fired when this View comes within visible area.</p>
  
  <p>The approach i though of using background thread during the timeframe of <code>onAttachedToWindow</code> to  <code>onDetachedToWindow</code>
  This thread will use <code>customView.getGlobalVisibleRect(rectangle)</code> to check whether any portion of the view is visible on the screen but this is spin lock approach, Is there any better way to detect visibility, any event which gets fired where I can call  <code>getGlobalVisibleRect</code></p>