get current item position in recyclerview code example
Example: how set index postion in recycler view item
//like this
1.question
2.question
3.
4.
holder.tvQuestion_no.setText(holder.getAdapterPosition()+1 +".");
//like this
1.question
2.question
3.
4.
holder.tvQuestion_no.setText(holder.getAdapterPosition()+1 +".");