How to get child view from RecyclerView?

前端 未结 11 1949
离开以前
离开以前 2020-12-24 08:18

I am trying to get child view by position. I could get view when one item is clicked:

rvSellRecords.addOnItemTouchListener(new RecyclerItemClickListener(         


        
11条回答
  •  醉酒成梦
    2020-12-24 08:59

    Use recyclerView.findViewHolderForLayoutPosition(position) or reyclerView.findViewHolderForAdapterPosition(position) to get the viewholder for postion. Then you can access any child from your viewholder.

    Checkout Recyclerview

提交回复
热议问题