1. Download our Official Android App: Forums for Android!

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

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

  1. csharperwithjava

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Nov 30, 2009

    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...