Hi,

After some work I was able to get the custom items on a ListView
working. Very cool stuff.
I have a quesiton about click events.
My custom list item view has 2 imageViews and a TextView.

On  the listView I capture onItemClick(AdapterView parent, View v, int
position, long id)

And everything works great.

But what about the possibility of finding out what actual view inside
the custom list item view the user clicked on?. Did he click on an
image, on the text ...

I looked at v View passed in to the above method, but that tells me
that the user clicked on the LinearLayout which is the base view for
the cutom item so no help there.

Note, It is important that when I capture the event I know what item
(position) object was clicked.


Any thoughts.

Thanks
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to