measureWithEqualDimens

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

Set the 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.