1. Check out our app, Forums for Android! Download and leave feedback here!

Using a custom listadapter with a button in the view.

Discussion in 'Application Development' started by csharperwithjava, Nov 30, 2009.

  1. csharperwithjava

    csharperwithjava New Member
    Thread Starter
    5

    Nov 30, 2009
    1
    0
    5
    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?
     

    Advertisement

Share This Page

Loading...