1. Are you ready for the Galaxy S20? Here is everything we know so far!

Using a custom listadapter with a button in the view.

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

  1. csharperwithjava

    Thread Starter

    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?
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Using custom listadapter
  1. bbbl67
    Replies:
    12
    Views:
    720
  2. persistentone
    Replies:
    4
    Views:
    468
  3. persistentone
    Replies:
    5
    Views:
    497
  4. 99shadows
    Replies:
    2
    Views:
    410
  5. behrprofl
    Replies:
    2
    Views:
    658
  6. ZepTepi
    Replies:
    5
    Views:
    341
  7. RatherLoopy
    Replies:
    5
    Views:
    470
  8. Hedwig7s
    Replies:
    0
    Views:
    890
  9. 8bitslipknot
    Replies:
    0
    Views:
    840
  10. ElectricJozin
    Replies:
    1
    Views:
    1,253

Share This Page

Loading...