I\'m creating an android app, in which I\'m using recyclerView
and the row of recyclerView is having editText
.
This is my ReadingAdapter<
RecyclerView
reuse views, in fact it only generate the as many as views that is visible on the screen. so it's expected if you can see a value you set for other rows
The solution would be set all attributes of the view that you are changing to default or whatever the row should present from your data set
So put addTextChangedListener
insode ViewHolder
constructor(you can get position by calling getAdapterPosition()
) for better performance and set the editText
value inside onBindViewHolder
method from your data set