super.onCreate(icicle);
final ExpandableListView expandableListView = getExpandableListView();
expandableListView.setItemsCanFocus(true);
for (int i = 0; i < sNumOfHeadersAndFooters; i++) {
Button header = new Button(this);
header.setText("Header View");
expandableListView.addHeaderView(header);
}
for (int i = 0; i < sNumOfHeadersAndFooters; i++) {
Button footer = new Button(this);
footer.setText("Footer View");
expandableListView.addFooterView(footer);
}
// Set adapter here AFTER we set header and footer views
setAdapter(expandableListView);