Using a custom listadapter with a button in the view.


Last Updated:

  1. csharperwithjava

    csharperwithjava New Member This Topic's Starter

    Joined:
    Nov 30, 2009
    Messages:
    1
    Likes Received:
    0
    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...