I had the similar problem with the checkbox.

This link helped me out.
http://stackoverflow.com/questions/1121192/android-custom-listview-unable-to-click-on-items

<http://stackoverflow.com/questions/1121192/android-custom-listview-unable-to-click-on-items>It
states that these check boxes sort of overrides the onListItemClick, and
imposes its own methods over ListItem. So we would have to set
android:focusable="false" for the checkbox. In your case it maybe same and u
would have to set focusable as false for the button.

Weired but yes it happens.

Tell us if it worked for you?

Vinay Julme
**************
{PS: Haven't seen your code.}

On Fri, Oct 22, 2010 at 2:02 PM, Doug <[email protected]> wrote:

> Without looking at the code you should have provided, are you
> registering an onClick listener on the ListView itself, or an
> onItemClickListener?  Only one of those really make sense.
> What happens is it imposes it's will on the entire ListItem, and sort of
> overrides the onListItemClick.
> Doug
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Reply via email to