@Override public void setAdapter(Adapter adapter) { mWrapperAdapter.setAdapter(adapter); super.setAdapter(mWrapperAdapter); adapter.registerAdapterDataObserver(mDataObserver); mDataObserver.onChanged(); }
public void setEmptyView(View emptyView) { this.mEmptyView = emptyView; mDataObserver.onChanged(); }