美文网首页
android RecyclerView获得单个Item的Vie

android RecyclerView获得单个Item的Vie

作者: S_ZY | 来源:发表于2018-05-07 11:02 被阅读1177次
             if (position - firstItemPosition >= 0) {  
                 //得到要更新的item的view  
                 View view = mRecyclerView.getChildAt(position - firstItemPosition+1);  
                 if (null != mRecyclerView.getChildViewHolder(view)){  
                     ProductsViewHolder viewHolder = (ProductsViewHolder)mRecyclerView.getChildViewHolder(view);  
       
     //do something  
                }  ```

    相关文章

      网友评论

          本文标题:android RecyclerView获得单个Item的Vie

          本文链接:https://www.haomeiwen.com/subject/vasmrftx.html