code: public void setEmptyView(View emptyView){
          if(this.emptyView != null){
              unregisterAdapterDataObserver(mEmptyObserver);
          }
          this.emptyView = emptyView;
          registerAdapterDataObserver(mEmptyObserver);
      }
docs: Set the empty view to be used so that
  @param emptyView