setOnClickListener of a ListView not working
Instead of using setOnClickListener
, try to use setOnItemClickListener
You need to use setOnItemClickListener()
and then new android.widget.AdapterView.OnItemClickListener()
not new View.OnItemClickListener()