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

RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i); if (viewHolder != null && viewHolder instanceof ItemHolder) { ItemHolder itemHolder = (ItemHolder) itemHolder itemHolder.mButton.togglestate(); } }
相關文章
相關標籤/搜索