user1526671
user1526671

Reputation: 817

list view context menu with list child item focusable android

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?

Upvotes: 1

Views: 386

Answers (1)

Sharad Mhaske
Sharad Mhaske

Reputation: 1103

Get reference to the button and then assign onclicklistener to it and also assign onlongitemclick listener to listview.hope this helps

Upvotes: 2

Related Questions