• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Using a custom listadapter with a button in the view.

I have a simple ListActivity that uses a custom ListAdapter to generate the views in the list. Normally the ListAdapter would just fill the views with TextViews, but now I want to put a button there as well.


It is my understanding and experience however that putting a focusable view in the list item prevents the firing of onListItemClick() in the ListActivity when the list item is clicked. The button still functions normally within the list item, but when something besides the button is pressed, I want onListItemClick to be triggered.


How can I make this work?
 
Back
Top Bottom