How to get row selection event and item click event in custom adapter listview all together in Android

479 views Asked by At

I have custom list of two text views having different text string. These are items in the list. In current scenerio I can only register the setOnItemClickListener for the list. This is triggered when the item in the list is clicked. If I click on the other portion of the row, no event is generated..

How can I have the item click as well as the row click event all together, so that wherever I click on the row of the list an event is triggered.

1

There are 1 answers

2
Bhuvanesh BS On

You can achieve this by implementing callback Interface.

Implement onClickListener for a particular view and use callback listener to get the callback to you fragment or activity.