super.onCreate(savedInstanceState); setContentView(R.layout.inflated_expandablelistview); ExpandableListView elv = (ExpandableListView) findViewById(R.id.elv); elv.setAdapter(new MyExpandableListAdapter());