naver / android-pull-to-refresh

Pull To Refresh Views for Android! v3.2.3
Apache License 2.0
310 stars 82 forks source link

PullToRefreshExpandableListView not applicable with BaseExpandableListAdapter? #20

Closed lfdversluis closed 10 years ago

lfdversluis commented 10 years ago

To me it makes perfect sense to set a BaseExpandableListAdapter as adapter for a PullToRefreshExpandableListView, however this is currently not possible.

Is this a bug? If not how to work around it or what is a better alternative?

ncoolz commented 10 years ago

You can get an actual ExpandableListView by calling getRefrehsableView() and set an adapter for it. See below,

ExpandableListView actualListView = mPullRefreshExpandableListView.getRefreshableView();
actualListView.setAdapter(expandableAdapter);
lfdversluis commented 10 years ago

Ah I see, @ncoolz thanks a lot for your comment. I'll close this issue.