use of com.emilsjolander.components.stickylistheaders.AdapterWrapper in project ABPlayer by winkstu.
the class XStickyListHeadersView method wrapAdapter.
private AdapterWrapper wrapAdapter(ListAdapter adapter) {
AdapterWrapper wrapper;
if (adapter instanceof SectionIndexer) {
wrapper = new SectionIndexerAdapterWrapper(getContext(), (StickyListHeadersAdapter) adapter);
} else {
wrapper = new AdapterWrapper(getContext(), (StickyListHeadersAdapter) adapter);
}
wrapper.setDivider(mDivider);
wrapper.setDividerHeight(mDividerHeight);
wrapper.registerDataSetObserver(mDataSetChangedObserver);
wrapper.setOnHeaderClickListener(mAdapterHeaderClickListener);
return wrapper;
}
Aggregations