Hi,
I am looking for help with adjusting the height of a Gallery based on how many items are appearing on screen. Basically, depending on the search results, I can have 4 items showing while other times I can have 12 items or more showing. So, I want my gallery to adjust its height depending on if there are 4 items or 12 items for example. Why I want that? It is simply because the height of my data card is linked to the height on my gallery. Right now, my height is fixed so if I only have 4 items showing, I have a bunch of blank space as shown below when I scroll down. I want the height of the gallery to stop where the last item is.
Thank you.

Report
All responses (
Answers (