android - How can you tell which item is clicked on ListView? -
I have a bunch of items on my list view, but I do not know how the listener applied to a particular item Go. Even if I try to use the statement and still do not work
I tried this code:
list.setOnItemClickListener (New OnItemClickListener () {public void onItemClick adapter view But this code applies to all items. Please help me with this, I really appreciate it very much. thank you in advanced!
simply put setListAdapter (New ArrayAdapter (this, android.R.layout.simple_list_item_1, string [] To display as a list));
Then you can know which item has been clicked .....
Comments
Post a Comment