measureWithEqualDimens

open fun measureWithEqualDimens(widthSpec: Int, heightSpec: Int, outputSize: Size)

Set the {@param outputSize} to respect both size specs and try to keep both width and height equal. This will only not guarantee equal width and height if these specs use modes and sizes which prevent it.