-
public class CornerA class used to specify the size and look of a given shape corner.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCorner.AbsoluteDefines an absolute size for a corner (in dp).
public final classCorner.RelativeDefines a relative size for a corner (in percent).
public classCorner.Companion
-
Field Summary
Fields Modifier and Type Field Description private final CornerTreatmentcornerTreatment
-
Method Summary
Modifier and Type Method Description final CornerTreatmentgetCornerTreatment()abstract FloatgetCornerSize(Float availableCornerSize, Float density)Calculates the size of the corner. -
-
Method Detail
-
getCornerTreatment
final CornerTreatment getCornerTreatment()
-
getCornerSize
abstract Float getCornerSize(Float availableCornerSize, Float density)
Calculates the size of the corner.
- Parameters:
availableCornerSize- the available space that this corner can take.density- the density of the screen (used in pixel size calculation).
-
-
-
-