I have a custom BaseAdapter
for my ListView
in which i implements AdapterView.OnItemClickListener
.
The problem is the onItem
Why would you have an OnItemClickListener inside the Adapter?! Either you have OnClickListener inside the Adapter, or the best practice is to set OnItemClickListener to the ListView or whatever AdapterView you use in your activity/fragment. The way you are doing it right now, it won't work for several reasons: