title: Check if view is visible and not obscured by other views?
body: <p>Putting Espresso aside, with just a View instance available, is there a way to test if it is visible to the user and is not obscured by anything else?</p>
  
  <p><code>view.getGlobalVisibleRect(Rect())</code> will return true if view is visible within target rectangle.</p>
  
  <p><code>view.visibility</code> in my case is Visible, but there is another view on the top of it in the layout.</p>
  
  <p><code>view.isShown</code> somehow delivers <code>true</code> even if there is another view obscuring on the top.</p>
  
  <p>Any way to know if view is actually visible to the user?</p>