Hello.
I have tried the cardview example, works great, but the problem is that the activity in which the panel is created is larger than the panel itself. So for many cards, there is a lot of space in between. It is possible to adapt the activity (parent) to the size only of the panel in which it is loaded?
Image: If I have mutiple cards results, the space between them is the gray space at the botton of the panel.
This is a variant of the card example from Erel. I just put a little labels, and see how that blue background which is the activity where the card is created occupy much more space than his children panel. I need the activity adapts to the panel children, so the cards are 1 below the other.
Ok! Thanks, I was drowning in a drop of water lol, just adjust the height of the panel before loading the designer file do the trick
B4X:
Dim height As Int = 150dip
If GetDeviceLayoutValues.ApproximateScreenSize < 4.5 Then height = 310dip
p.SetLayoutAnimated(0, 0, 0, Width, height)
p.LoadLayout("card1")