CornerSize

public interface CornerSize

com.google.android.material.shape.CornerSize
AbsoluteCornerSize A CornerSize that always uses the provided size and ignores the bounds. 
RelativeCornerSize A CornerSize that takes a percent and computes the size used based on the length of the shortest edge adjacent to the corner. 


Allows clients to describe the size of a corner independently from a CornerTreatment.

Summary

Public methods

abstract float getCornerSize(RectF bounds)

Returns the corner size that should be used given the full bounds of the shape.

Public methods

getCornerSize

public abstract float getCornerSize (RectF bounds)

Returns the corner size that should be used given the full bounds of the shape.

Parameters
bounds RectF

Returns
float