I'm using the cardslib library for having cards in my Android app. It has pre-defined card layouts or we have an option to customize the layout.
While creating the adapter for recycler view, only the list of card objects with pre-defined card layouts are accepted. I get an error when I try to pass a list of custom cards to the constructor.
CardArrayRecyclerViewAdapter cardArrayRecyclerViewAdapter = new CardArrayRecyclerViewAdapter(getApplicationContext(), customCards);
The above code shows an error. customCards
is the list of custom card objects. How do I make it work ?