On Wed, Feb 29, 2012 at 7:49 AM, Farhan Tariq <[email protected]> wrote:

> just can't figure out how to get only those values from the listView that
> the box is covering. Any suggestions?


So, basically what you need is a simple intersection test: does this View
(your draggable box) intersect with these views in the ListView.

Have you looked at the ListView and base View class docs? Literally just
reading their pages and looking at all the functions available to you
should give you some ideas.

For example, the ListView base class has this:
http://developer.android.com/reference/android/widget/AbsListView.html#pointToPosition%28int,%20int%29

And the View class has this:
http://developer.android.com/reference/android/view/View.html#getHitRect%28android.graphics.Rect%29

That's what I found in a 60 second review. If you put some time into
researching the classes you're working with, I'm sure you'll find even more
useful methods.
Hope that helps.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to