android - RecyclerView - CardViews overlap each other when scrolling (How to add multiple rows to a single CardView?) -
the entire layout set - recyclerview contains several card views, , each cardview can have multiple rows of linearlayouts of exact type (but different data). everything works okay, except when scroll down or up, cards begins overlap on other cards randomly. here's code: public class myadapter extends recyclerview.adapter<myadapter.viewholder> implements view.onclicklistener{ context context; public myadapter(context context) { this.context = context; } @override public int getitemcount() { return 20; } @override public void onbindviewholder(viewholder holder, int position) { try { linearlayout.layoutparams contentparams = new linearlayout.layoutparams(100, 100); layoutinflater inflater = layoutinflater.from(context); linearlayout ll_parent = (linearlayout) inflater.inflate(r.layout.parent_linearlayout, null, false); networkimageview networkimageview = ...