Hi,
Is there a way to use a List View with setTextFilterEnabled(true) and get the position into the unfiltered list returned to onItemClick? E.G. If I have a list:- - Zero - One - Two - Three And a user types "T" o filter the list to:- - Two - Three When a user clicks on "Two" in the filtered list, I would like the id or position returned to onItemClick to be "2". But instead it returns 0, which is expected as it is the first item in the filtered list. But what's the best way to get the position in the unfiltered list? Thanks a lot, Ryan FYI My code is as follows:- ------------------------------------------------------------------------------------------------------------------------ List<String> list; ArrayAdapter<String> array; list.add("Zero"); list.add("One"); list.add("Two"); list.add("Three"); array = new ArrayAdapter<String> (this,android.R.layout.simple_list_item_1, list); setListAdapter(array); this.getListView().setOnItemClickListener(this); this.getListView().setTextFilterEnabled(true); -------------------------------------------------------------------------------------------------------------------------- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---