String.format( "Ratio makes height larger than allowed. w:%s h:%s aspectRatio:%f", SizeSpec.toString(widthSpec), SizeSpec.toString(heightSpec), aspectRatio)); String.format( "Ratio makes width larger than allowed. w:%s h:%s aspectRatio:%f", SizeSpec.toString(widthSpec), SizeSpec.toString(heightSpec), aspectRatio));