Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

AbsoluteCornerSize

public final class AbsoluteCornerSize
extends Object implements CornerSize

java.lang.Object
   ↳ com.google.android.material.shape.AbsoluteCornerSize


A CornerSize that always uses the provided size and ignores the bounds.

Summary

Public constructors

AbsoluteCornerSize(float size)

Public methods

boolean equals(Object o)
float getCornerSize()

Returns the size of this corner.

float getCornerSize(RectF bounds)

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

int hashCode()

Inherited methods

Public constructors

AbsoluteCornerSize

public AbsoluteCornerSize (float size)

Parameters
size float

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getCornerSize

public float getCornerSize ()

Returns the size of this corner. Bounds aren't required since the result is always the same.

Returns
float

getCornerSize

public float getCornerSize (RectF bounds)

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

Parameters
bounds RectF

Returns
float

hashCode

public int hashCode ()

Returns
int