Adding multiple different CardViews to RecyclerView
问题 I have a RecyclerView and I want to add to that RecyclerView multiple different CardViews . Lets say I have cardview1.xml , cardview2.xml , cardview3.xml each ViewCard has Class that have the variables for the ViewCard and the Classes extends from Class called CardView that I created with no properties. I want to add to one RecyclerView 3 cardview1 , 2 cardview2 , 4 cardview3 . I want to know how to do that in My Adapter CardView1: public class CardView1 extends CardView { public CardView1(){