I have implemented an custom list view with base adapter that contains focusable item like button. so i have disabled the focusable and clickable in xml. My problem is , added context menu for list item in list view using register for context menu. how to make the list view respond for both long item click and also for button list item click?
Asked
Active
Viewed 386 times
1
-
2Get reference to the button and then assign onclicklistener to it and also assign onlongitemclick listener to listview.hope this helps. – Sharad Mhaske Jun 15 '13 at 10:31
-
@SharadMhaske, u should post this as an answer... – amalBit Jun 15 '13 at 10:41
1 Answers
2
Get reference to the button and then assign onclicklistener to it and also assign onlongitemclick listener to listview.hope this helps

Sharad Mhaske
- 1,103
- 9
- 19