Java Code Examples for com.chad.library.adapter.base.BaseQuickAdapter#HEADER_VIEW

The following examples show how to use com.chad.library.adapter.base.BaseQuickAdapter#HEADER_VIEW . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ItemDragAndSwipeCallback.java    From BaseProject with Apache License 2.0 4 votes vote down vote up
private boolean isViewCreateByAdapter(RecyclerView.ViewHolder viewHolder) {
    int type = viewHolder.getItemViewType();
    return type == BaseQuickAdapter.HEADER_VIEW || type == BaseQuickAdapter.LOADING_VIEW
            || type == BaseQuickAdapter.FOOTER_VIEW || type == BaseQuickAdapter.EMPTY_VIEW;
}
 
Example 2
Source File: DragAndSwipeCallback.java    From BaseRecyclerViewAdapterHelper with MIT License 4 votes vote down vote up
private boolean isViewCreateByAdapter(@NonNull RecyclerView.ViewHolder viewHolder) {
    int type = viewHolder.getItemViewType();
    return type == BaseQuickAdapter.HEADER_VIEW || type == BaseQuickAdapter.LOAD_MORE_VIEW
            || type == BaseQuickAdapter.FOOTER_VIEW || type == BaseQuickAdapter.EMPTY_VIEW;
}