Layout, CardView, and RecyclerView

0

Good morning, I'm a beginner in android development, I'm in doubt, I would like a suggestion.

I'm making an application similar to Trello, but I do not know what to use.

I will have several lists that can be browsed horizontally and within the lists can be added cards as shown in the image, what resources can I use? A CardView for the lists and within the CardView a Recyclerview to add the cards?

Thank you

    
asked by anonymous 08.11.2018 / 14:22

1 answer

0

You will need both because they serve different purposes. Briefly, RecyclerView is used to represent data lists, and CardView is used to display data of an item.

As for how to use, I suggest the following: based on the idea that each item in this horizontal list is a Board object (example) and that a Board has N objects Cards associated, you will need two lists, that is, two RecyclerView s, one to mount the horizontal list of Boards and one to set the list of Card s of each Board . However, since each Card has its own information (for example, description) you will need to display them within CardView .

So you would have something like this:

    
08.11.2018 / 17:31