Relative Corner Size
A CornerSize that takes a percent and computes the size used based on the length of the shortest edge adjacent to the corner.
Functions
Link copied to clipboard
open fun createFromCornerSize(@NonNull bounds: RectF, @NonNull cornerSize: CornerSize): RelativeCornerSize
Creates a relative corner size from a given corner size.
Link copied to clipboard
Returns the corner size that should be used given the full bounds of the shape.
Link copied to clipboard
Returns the relative percent used for this CornerSize in range [0,1].