Tricky question.
I have a class named "Bivio" in which I set a Navigation Drawer and in the first of the fragments there is an ExpandableListView.
I placed the ExpListView in fragment1 and develop all the activities from Bivio.class.
Yet, I get a NPE on my ExpListView at this point
expListView = (ExpandableListView) findViewById(R.id.lvExp);
prepareListData();
listAdapter = new ExpandableListAdapter(this, listDataHeader, listDataChild);
expListView.setAdapter(listAdapter);
It goes without saying that I actually have an ExpListView with ID lvexp, that I declared all the due variables
ExpandableListAdapter listAdapter;
ExpandableListView expListView;
List<String> listDataHeader;
Bivio.class is declared in manifest.
And here is the logcat http://pastebin.com/kFxjG5gR
I know by clicking on the link that the flaw lies in here expListView.setAdapter(listAdapter); but I declared all I could!
I guess navigationDrawer poses some challenges for what concerns working in the main activity on Views embedded in Fragments, correct?