Which of the following add a click listener to items in a listView?
Which of the following add a click listener to items in a listView?
AdapterView.OnItemClickListener is the correct method to add a click listener to items in a ListView. This interface provides a callback method, onItemClick, that is invoked when an item in the AdapterView is clicked, making it specifically designed for this purpose.
B. onItemClickListener.