In my project I am trying to access the adapter(BaseExpandableListAdapter
) set to a ExpandableListView by calling getAdapter()
method. But getAdapter()
returns android.widget.ExpandableListConnector
.
here is my code
mExpandableListView.setAdapter(new ItemsExpListAdapter(navigationDrawerItems, getActivity()));
Log.e("adapter" , mExpandableListView.getAdapter().getClass().toString());
And I am getting in logcat like this
You should use:
mExpandableListView.getExpandableListAdapter();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With