Home > OS >  Inside recyclerview i have an cardview inside edittext problem
Inside recyclerview i have an cardview inside edittext problem

Time:12-05

Inside recyclerview I implement cardview Inside this cardview have 1 edittext, recyclerview contains 10 rows of cardview, but the problem is if I edit 1st row of cardview, it will also reflect in 10th row of cardview editext,if I edit 2nd cardview then it will reflect 9th cardview, what can I do ,please help me out...

CodePudding user response:

Just Override getItemId in your Recycler Adapter.

@Override
public long getItemId(int position) {
    return super.getItemId(position);
}

CodePudding user response:

Make sure you're overriding getItemViewType, getItemId and getItemCount properly.

(similar question)

  • Related