Zishan Neno
Zishan Neno

Reputation: 2817

Static child item in ExpandableListView

I'm a newbie to Android programming and I've been whacking my head over how to do this... I'd like to create an ExpandableListView where the same child item XML (containing add, edit and delete buttons) is populated across all the group items.

Could someone please help me out with this?

Preferably, I'd like to stick with "public class HelloWorld extends Activity" since this is the main activity. But if it "has" to be changed to "extends ...something else", no problem.

Upvotes: 2

Views: 1475

Answers (1)

josephus
josephus

Reputation: 8304

Look here for an example of customized expandable ListView. You just need to modify the child elements array to reflect your single-child view. Better yet if you implement it such that you don't need a child element array. Hint: overriding getChildView

Upvotes: 1

Related Questions