I don't know how you have created your Adapter for supplying to your
ListView subclass. I am assuming that you implemented an Adapter
subclass
that overrode getView() and is returning your row objects on demand,
perhaps instantiated via ViewInflate.
arrayAdapter1= new ArrayAdapter <String>(this, R.layout.component,
R.id.name);
is how I initialize my adapter. I do not override any methods.
"component" is my custom component and "name" is a textView that takes
the value.
I tried:
absoluteLayout1 is the name of the absolutelaoyout in component.xml
AbsoluteLayout absoluteLayout1=
(AbsoluteLayout)this.findViewById(R.id.absoluteLayout1);
deleteButton1=
(Button)absoluteLayout1.findViewById(R.id.deleteButton);
AND (as said earlier) also tried
deleteButton1=
(Button)customComponent.findViewById(R.id.deleteButton);
customComponent is initialized as:
customComponent= new ConversationListView(this);
--OR--
customComponent=
(ConversationListView)this.findViewById(R.layout.component);
it didn't work.
Sylvester
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---