RecyclerView 局部刷新(获取viewHolder 去刷新)

RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i); if (viewHolder != null && viewHolder instanceof ItemHolder) { ItemHolder itemHolder = (ItemHolder) itemHolder itemHolder.mButton.togglestate(); } }
posted @ 2018-06-14 09:49  Alter  阅读(2653)  评论(0编辑  收藏  举报