Online Course Support

How can you react to click events on an item of a ListView?

Question 6
How can you react to click events on an item of a ListView?

1 point

I create and associate to the ListView an object implementing the AdapterView.OnItemClickListener interface.

In the XML layout file I set the “onClick” property of the ListView to the name of the method to call when an item is clicked.

Similar Posts