Masonry View implementation
I have a dynamic panel which has several material cards inside it . All of them have different heights according to their respective content. If I set the layout as horizontal and use horizontal wrap, it will place my cards right horizontally but the problem arises when I have to place the cards in second row according to the different ending heights of cards in the first row. How should I calculate the height of the card above and add vertical spacing according to it?