Previous time I asked a question here I learned a lot so I guess it\'s worth a shot to try it again.
I am using the lazy list by Fedor from this link: Lazy load of i
I am writing my answer as:
1) the code by @Falmarri needs some update
2) My suggested edit was totally rejected XD
3) Stackoverflow is not allowing me to write a comment.
Here is the code:
ListView listView = (ListView) findViewById(R.id.my_listview_in_layout);
listview.setOnItemClickListener(new AdapterView.OnItemClickListener(){
@Override
public void onItemClick(AdapterView> parent, View view, int position, long id){
//Do stuff
//...
}
});
Reference: According to android.widget.AdapterView.OnItemClickListener , public method onItemClick() is the method invoked when an item is clicked {instead of unknown protected method onListItemClick() }