// Path: appbaselibrary/src/main/java/com/frankzhu/appbaselibrary/viewholder/FZBaseViewHolder.java
// public abstract class FZBaseViewHolder<T> extends RecyclerView.ViewHolder {
// 
//     public FZBaseViewHolder(View itemView) {
//         super(itemView);
//         ButterKnife.bind(this, itemView);
//     }
// 
//     public abstract void bindViewData(T data);
// }


import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.frankzhu.appbaselibrary.R;
import com.frankzhu.appbaselibrary.R2;
import com.frankzhu.appbaselibrary.viewholder.FZBaseViewHolder;
import butterknife.BindView;
        }
    }

    public void setEmptyMessage(String emptyMessage) {
        mEmptyMessage = emptyMessage;
    }

    /**
     * 移除所有记录
     */
    public void clearItems() {
        int size = mDataList.size();
        if (size > 0) {
            mDataList.clear();
            notifyItemRangeRemoved(mHeaderCount, size + mBottomCount);
        }
    }

    @Override
    public int getItemCount() {
        return mDataList.size() == 0 ? mHeaderCount : super.getItemCount();
    }

    @Override
    public RecyclerView.ViewHolder onCreateBottomView(ViewGroup parent) {
        return new BottomEmptyViewHolder(mLayoutInflater.inflate(R.layout.include_bottom_empty, parent, false));
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
// Path: appbaselibrary/src/main/java/com/frankzhu/appbaselibrary/viewholder/FZBaseViewHolder.java
// public abstract class FZBaseViewHolder<T> extends RecyclerView.ViewHolder {
// 
//     public FZBaseViewHolder(View itemView) {
//         super(itemView);
//         ButterKnife.bind(this, itemView);
//     }
// 
//     public abstract void bindViewData(T data);
// }


// Path: appbaselibrary/src/main/java/com/frankzhu/appbaselibrary/adpater/BaseBottomEmptyItemAdapter.java
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.frankzhu.appbaselibrary.R;
import com.frankzhu.appbaselibrary.R2;
import com.frankzhu.appbaselibrary.viewholder.FZBaseViewHolder;
import butterknife.BindView;

        }
    }

    public void setEmptyMessage(String emptyMessage) {
        mEmptyMessage = emptyMessage;
    }

    /**
     * 移除所有记录
     */
    public void clearItems() {
        int size = mDataList.size();
        if (size > 0) {
            mDataList.clear();
            notifyItemRangeRemoved(mHeaderCount, size + mBottomCount);
        }
    }

    @Override
    public int getItemCount() {
        return mDataList.size() == 0 ? mHeaderCount : super.getItemCount();
    }

    @Override
    public RecyclerView.ViewHolder onCreateBottomView(ViewGroup parent) {
        return new BottomEmptyViewHolder(mLayoutInflater.inflate(R.layout.include_bottom_empty, parent, false));
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
        if (holder instanceof BottomEmptyViewHolder) {