I have a listview with custom adapter in listfragment and also set onclicklistner for listview. But Onclicklistner does not work.
Here is my code:
p
Check your MyCustomAdapter, Some widget (such as: Button,ImageButton) in the custom layout will consume the click event and then the onItemClick will never get called.
Use the following code in your adaper's getView method to get the onClick event.
row.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});