Relative

class Relative(val percentage: Int, cornerTreatment: CornerTreatment) : Corner

Defines a relative size for a corner (in percent).

Parameters

percentage

the percentage of the space available for the corner that will be used as its size.

Constructors

Link copied to clipboard
constructor(percentage: Int, cornerTreatment: CornerTreatment)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun getCornerSize(availableCornerSize: Float, density: Float): Float

Calculates the size of the corner.