CardView

Hi guys, it is possible for cardview to have a different number of content? For example, the first cardview have 3 items, and 2nd one have 4 items.

Tagged:

Answers

  • MihaMarkicMihaMarkic SI ✭✭✭✭

    I'd say yes, definitely. One way is to hide/show the content while binding. The other way would be to use different layouts.

  • The second options would be pain in the ***. Because i'm trying to group the data in January-December (12 layouts in total). I'm not quite understand about the first option. hide/show?

  • MihaMarkicMihaMarkic SI ✭✭✭✭

    Manipulating Visibility property of Views within CardView? Not sure about your scenario though. Do you have known content that you would partially hide?

Sign In or Register to comment.