Filtering happens in the adapter at the same time. All you have to do is use the position parameter to ask the adapter for the item at that position.
On Fri, Mar 6, 2009 at 6:00 AM, [email protected] <[email protected]> wrote: > > Hi all, > > I have a ListView with the text filter enabled plus an > OnItemClickListener. I don't understand how to find out which item > from my initial list was clicked because in void onItemClick > (AdapterView <?> parent, View v, int position, long id) position gives > the current position of the clicked item (after filtering) which is > NOT the initial position of this item in the list. > > Any way to do it? I would be disapointed if we should do the filtering > ourselves in the same time in the corresponding ListAdapter... > > Thanks. > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

