RelativeCornerSize

A CornerSize that takes a percent and computes the size used based on the length of the shortest edge adjacent to the corner.

Constructors

Link copied to clipboard
constructor(@FloatRange(from = 0.0, to = 1.0) percent: Float)

Functions

Link copied to clipboard
Creates a relative corner size from a given corner size.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun getCornerSize(@NonNull bounds: RectF): Float
Returns the corner size that should be used given the full bounds of the shape.
Link copied to clipboard
@FloatRange(from = 0.0, to = 1.0)
open fun getRelativePercent(): Float
Returns the relative percent used for this CornerSize in range [0,1].
Link copied to clipboard
open fun hashCode(): Int