简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM