When scroll in Recyler View Radio Button changes its selection

前端 未结 1 1266
离开以前
离开以前 2021-01-07 05:27

I am using RecylerView to set RadioButton.But on selection selected changes its position when scroll.Please help me.

Thanx in advance!!!

My

1条回答
  •  不思量自难忘°
    2021-01-07 06:09

    In Recycleview adapter you can add the below the line. It's already working in my code. This code helps to fix your list position.

    public int getItemViewType(int position) {
            return position;
        }
    

    0 讨论(0)
提交回复
热议问题