Hello everyone,
I am creating 4 Cardviews in a horizontal arrangement.
Cards are dynamic. I want the width to be fill parent.
From what I’ve learned, -1 is automatic and -2 is fill parent, right?
Here we have 4 non-dynamic cards with width in fill parent.
Creating component zero doesn’t seem to me to be the reason. I also tested starting with 1.
The reason I use 0 there, is that the first component is not getting the color I defined.
So I create component zero and delete. Once that’s done, the rest will have the defined color.
Here is the png of the blocks. Take the test if you wish.
Do you want to create this dynamic Card view in bottom menu or inside the card view present in bottom menu as your container is bottom menu so the card view is taking width and height according to the bottom menu that is the problem
Yes that true if you wants to make all the 4 card of this size then you must use a horizontal scrolling arrangement or or you have to decrease the size ok
Yes, using percentage would be an option. 4 items = 25%. However, fill parent in this case would be very useful in case a fifth item is inserted, you know? Just for practicality.
This is the layout of one of my apps. As you can see (I left a cardview colored) I made the lower menu using the full click of the cardview. There I have my images (buttons) and the label. With Cardview you can click on the entire component.
I haven’t been able to test it yet. But the extension that @sugarlesscreator suggested seems to serve this purpose. I will do this as soon as possible. Anyway, thanks for suggesting using the percentage.