Layout, Cardview and Recyclerview

Asked

Viewed 37 times

0

Good morning, I am beginner in android development, I’m doubtful, I would like a suggestion.

I’m making an application similar to Trello, but I don’t know what to use.

I will have several lists that can be navigated horizontally and inside the lists can be added cards as shown in the image, which features can I use? A Cardview for the lists and within Cardview a Recyclerview to add the cards?

Quadros Trello

Thank you

1 answer

0


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

As to how to use, I suggest the following: starting from the idea that each item of this horizontal list is an object Board (example) and that a Board has been N objects Cards associates, you will need two lists, ie two RecyclerViews, one to assemble the horizontal list of Boards and another to put together the list of Cards of each Board. But like every other Card has own information (for example, description) you will need to show them inside a CardView.

Then you’d have something like:

inserir a descrição da imagem aqui

  • I did it that way and I got, thank you very much!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.