Thursday, September 23, 2010

[android-developers] ListView with rows that contain a button

I have a ListView control for which I supply my own ListAdapter. When
my adapter's 'getView' is called, I return a view which contains other
controls. Now if the view that I return contains only TextViews, then
everything works fine. However if I place a Button control on the
view that I return, then I do not seem to be able to select a row of
the table anymore. I can scroll the table, and touch the button that
is in the row and get it's 'onClick' message, but I never receive an
'onItemClick' message from the ListView control.

Is this supposed to work? If so, does anyone have any idea what might
be going wrong?

Thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment