I'm trying to make a row of 5 equal squares (each 50x50) with spacing 20dp between them. I don't want anything to stretch, but at the same time I want to make it so that if I hide one of the squares, the others move over.
For example:
+-----+ +-----+ +-----+ +-----+ +-----+
| 50 | 20 | 50 | 20 | 50 | 20 | 50 | 20 | 50 |
| x50 | | x50 | | x50 | | x50 | | x50 |
+-----+ +-----+ +-----+ +-----+ +-----+
Then, if I set the middle square to isHidden = true, I'd want the others to move over:
+-----+ +-----+ +-----+ +-----+
| 50 | 20 | 50 | 20 | 50 | 20 | 50 |
| x50 | | x50 | | x50 | | x50 |
+-----+ +-----+ +-----+ +-----+
Is this possible? My first thought was a stack view, but I don't think that would work since they're meant to adjust spacing.