If I am not mistaken, and I have not yet tried what you are trying to
accomplish, then you should attach a click listener for the button and not
the list. This is because, like in Java Swing or Windows MFC, the click
event occurs on the button. i.e. the event source is the button and not the
list.

On Sun, Nov 9, 2008 at 10:18 PM, Nickname <[EMAIL PROTECTED]> wrote:

>
> One of my ListView's has a Button view on every item's LinearLayout.
>
> I just found that clicking on any item of the ListView does not
> callback its onItemClick(), which is set thru
> ListView.setOnItemClickListener().
>
> If I remove the Button view from item layout, callback is ok then.
>
> Can anybody advise me how I get the callback on the ListView with
> Button?
>
> Thanks.
> >
>


-- 
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials

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