setOnItemClickListener VS setOnItemSelectedListener in ListView.

Ayush Goyal picture Ayush Goyal · Sep 6, 2012 · Viewed 9.4k times · Source

I wish to set an onClickListener on items of a ListView but I see two methods setOnItemClickListener and setOnItemSelectedListener . I didint find any justified explanation for these two in official docs. Which one to use for what purpose?

To select an item, the user will have to click the item then what is the use of different methods?

Answer

Aditya Nikhade picture Aditya Nikhade · Sep 6, 2012

It is like

the item is clicked (single selection) vs the item is selected (used in multiple selection)