> Ok, I created a new adapter which works. But now I've got the problem
> that I want to add a onclick feature what means that if I click on one
> item then a list will be shown. I've already found some examples in
> the internet, but they all are inherting from Activity or
> ListActivity. In my case the class ContactAdapterView extends the
> LinearLayout and hence doesn't work in the same way like in the
> example from the API demos (List6.java).

I am not completely certain I understand your situation, so bear with me.

You have a ListView that is populated with a set of ContactAdapterViews
courtesy of some custom Adapter. When the user clicks on a TextView inside
the ContactAdapterView, you want something to happen, but not in other
cases.

Do I have this right?

> I wanted to use the "setOnClickListener" method of the nameControl
> element, but I failed.

When you say "I failed", what do you mean?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ -- Available Now!


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