However, I can't seem to see a way to do exactly this with FluentLayout.
I only see methods to replicate another views bounds, with the methods prefixed with WithSame or WithRelative. Or you can position the view at top, bottom, left or right of a view. However, there are no expressions to add the constraint above?
Usually if I want a square which is as high as it is wide I do something like this:
However, I can't seem to see a way to do exactly this with FluentLayout.
I only see methods to replicate another views bounds, with the methods prefixed with
WithSame
orWithRelative
. Or you can position the view at top, bottom, left or right of a view. However, there are no expressions to add the constraint above?