        } else {
            return position;
        }
    }
    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        if(viewType==TYPE_FOOTER){
            View view=View.inflate(parent.getContext(), R.layout.activity_view_footer,null);
            return new FooterViewHolder(view);
        }else{
            View rootView=View.inflate(parent.getContext(),R.layout.item_book_bytag,null);
            return new BookByTagViewHolder(rootView);
        }

    }