J.R*_*J.R 4 android expandablelistview expandablelistadapter
在我的项目中,我试图BaseExpandableListAdapter通过调用getAdapter()方法访问设置为ExpandableListView 的adapter().但getAdapter()回报android.widget.ExpandableListConnector.
这是我的代码
mExpandableListView.setAdapter(new ItemsExpListAdapter(navigationDrawerItems, getActivity()));
Log.e("adapter" , mExpandableListView.getAdapter().getClass().toString());
Run Code Online (Sandbox Code Playgroud)
我正在这样的logcat
has*_*san 11
你应该使用:
mExpandableListView.getExpandableListAdapter();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
805 次 |
| 最近记录: |