recyclerView holder不断创建

RecyclerView list列表清空后用list.addAll()设置新的数据调用adapter.notifyDataSetChanged()为什么会走onCreateViewHolder()创建新holder方法有什么办法在刷新list不创建Holder

http://blog.csdn.net/yjfhacker/article/details/52412394

因为你重新刷新数据,唤醒适配器所以必定会走onCreatViewHolder,但是如果你不想再次创建Holder的话,只要在onCreateHolder方法中判断
if(ViewHolder==Null)
{
ViewHolder=new ViewHolder
}