Android LinearLayout get views/rows that are on the screen
<p>Let's say I have a <code>LinearLayout</code> set to vertical and i've added 100 views to it each view is 50dp high.  A user is going to scroll and fling up and down on that <code>LinearLayout</code>.</p>

<p>I need to know the index numbers of the views that are on the screen. i.e if they fling down to the middle and stop, and see 5 items on their screen, i'd need to infer 50-55.</p>

<pre><code>            &lt;LinearLayout
                android:orientation="vertical"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:id="@id/listing_main"&gt;
            &lt;/LinearLayout&gt;
</code></pre>

<p>I've tried a bunch of ways to infer the current visible views - like taking the <code>scrollY</code> position and the height of my items...doesn't seem to work out.</p>

<p><code>view.getScrollY()</code> seems totally arbitrary compared to the other scroll mesurements</p>
