ListView setOnItemClickListener and setOnItemSelectedListener to store the Selected Item Index
- by Christophe
Hi all,
I have read on this site that it is necessary to customize the setOnItemSelectedListener and setOnItemClickListener of a ListView if we want to know the Index of the SelectedItem (.getSelectedItemPosition()). So that is what I do but it does not stores the position of the SekectedItem, instead i have always -1...
What I want to do is just…