RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i); if (viewHolder != null && viewHolder instanceof ItemHolder) { ItemHolder itemHolder = (ItemHolder) itemHolder itemHolder.mButton.togglestate(); } }
本文共 288 字,大约阅读时间需要 1 分钟。
转载于:https://www.cnblogs.com/qianyukun/p/9181610.html