title: Android - Table layout like gmail's attachment layout
body: <p>I want to create a table view with rows and columns dynamically so that when I delete an item from a column, all other items should rearrange automatically. I saw gmail app where the attachment layout in Compose screen behaves exactly same. How can I achieve the same in my app? I tried TableLayout but when I delete an item from a column, it leaves blank space there instead of rearranging automatically.</p>