Visibility.FALSE on ImageAShape in RowAShapeLayout
I have an ContainerAShape with three ImageAShape sub-shapes (X,Y,Z) in a horizontal layout. The problem is that I want to set the AShape.A_VISIBILITY on say the middle one ( Y ) to Visibility.FALSE, such that the image Y takes NO space during layout (i.e. image X and Z would be side by side).
That is, I have three images rendered in the upper right hand corner of the activity in a horizontal layout and with very little padding/space between them. The problem is that when, say, the middle one is set to be not visible, there is a “large” gap in the rendering between the first image (x) and the last (z).
This is so I can toggle the visibility of these images via a setStaticOverride and still have the visible images rendered side-by-side.
I basically want the preferred size of the not visible ImageAShape subshapes to be (0,0).
I have tried RowAShapeLayout and CutEdgeAShapeLayout with no luck.
Does anybody know if this is possible?