Difference between onItemClickListener and OnItemSelectedListener of AdapterView

Suresh picture Suresh · Nov 14, 2010 · Viewed 12.6k times · Source

What is the difference between these two listeners,documentation says :

OnItemSelectedListener - Interface definition for a callback to be invoked when an item in this view has been selected.

OnItemClickListener - Interface definition for a callback to be invoked when an item in this AdapterView has been clicked.

Selection,Click aren't these equal on touch screen?

Answer

Bryan Denny picture Bryan Denny · Nov 14, 2010

OnItemSelectedListener is used for Spinners, and OnItemClickListener is used for ListViews.