Hi all,

I am writing  a program where I need a ListView for which I am using a
ListActivity. Each one  of the views within the ListView has four
buttons, (Off, Dim, Bright and On). Each one of these buttons is
configured with it's own OnClickListener when I build the view. This
part seems to work  ok.

However when I have say 5 Views each which has these four buttonns, I
cann tell whether an off,dim,bright or on button was pressed but I
cannot tell from which view it was pressed.

So for example if my views are devices (Light, Heater and Kettle) I
press an "on" button and i know an On button was pressed but how do I
get it to tell me the On button for the Light was pressed?

Any ideas on how to achieve this?

Thanks, Matt

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