之前对ListView的BaseAdapter进行过封装,只需重写一个getView方法: 现在慢慢的RecyclerView成为主流,下面是RecyclerView.Adapter的封装: BaseRecyclerViewHolder类: public class BaseRecyclerHolder extends RecyclerView.ViewHolder { private SparseArrayCompat<View> mViews; public BaseRecyclerHol…