handle listview with button
i have a listview and button on the list how can i use both button.setonclicklis开发者_如何学Pythontener and onListItemClick in listview
I had the same issue.But while adding button's onClick event to adapter,it was not able to listen to the list item's click event.so I used image instead of a button and then registered its click event in adapter,and that was working nicely.
Set the button.setOnCLickListener in your getView() method of the adapter.
精彩评论