I am trying to make a listView that has an editText and when you type something it filters all the contents to the the names with that contains the text the user typed and then you press it to show more information about this name. The filter works fine but the since in the onItemClickListener each case is defined by it's number ex:
case 0:
....
break;
case 1:
....
break;
case 2:
....
break;
when the user types something and the names get filtered, for example case 45 will become case 0 and it will open the information of the case 0 instead of case 45, so how can I have a fixed name for them like when in the onClick method when you type the id of the button.
Thanks
0 comments:
Post a Comment