public void removeFooter(Object footer){
  if (mFooters.contains(footer)) {
    int position=mFooters.indexOf(footer);
    mFooters.remove(position);
    notifyItemRemoved(mHeaders.size() + mData.size() + position);
  }
}

public void removeFooter ( Object footer ) { if ( mFooters . contains ( footer ) ) { int position = mFooters . indexOf ( footer ) ; mFooters . remove ( position ) ; notifyItemRemoved ( mHeaders . size ( ) + mData . size ( ) + position ) ; } }
remove a footer from the adapter
