title: How do I tell when an image is clipped?
body: <p>If I have a LinearLayout containing ImageViews, how could I write code to tell which, if any, is clipped by the edge of the screen?</p>
  
  <pre><code>&lt;LinearLayout android:id="@+id/imagecontainer"
                android:orientation="horizontal"
                android:layoutHeight="wrap_content"
                android:layoutWidth="fill_parent"&gt;
  
      &lt;ImageView android:id="@+id/image1" .../&gt;
      &lt;ImageView android:id="@+id/image2" .../&gt;
  
       ...
  
      &lt;ImageView android:id="@+id/imageN" .../&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I imagine something like, which would return an index or 0 if nobody is clipped.  The semantics of the function call aren't really important... I just need some way to tell if there is clipping and if so, who is it?</p>
  
  <pre><code>int whichImageIsClipped(LinearLayout root) { ... }
  </code></pre>