RelativeCornerSize
public
final
class
RelativeCornerSize
extends Object
implements
CornerSize
java.lang.Object | |
↳ | com.google.android.material.shape.RelativeCornerSize |
A CornerSize
that takes a percent and computes the size used based on the height of the
shape.
Summary
Public constructors | |
---|---|
RelativeCornerSize(float percent)
|
Public methods | |
---|---|
boolean
|
equals(Object o)
|
float
|
getCornerSize(RectF bounds)
Returns the corner size that should be used given the full bounds of the shape. |
float
|
getRelativePercent()
Returns the relative percent used for this |
int
|
hashCode()
|
Inherited methods | |
---|---|
![]()
java.lang.Object
| |
![]()
com.google.android.material.shape.CornerSize
|
Public constructors
RelativeCornerSize
RelativeCornerSize (float percent)
Parameters | |
---|---|
percent |
float : The relative size of the corner in range [0,1] where 0 is no size and 1 is the
full bounds height.
|
Public methods
equals
boolean equals (Object o)
Parameters | |
---|---|
o |
Object |
Returns | |
---|---|
boolean |
getCornerSize
float getCornerSize (RectF bounds)
Returns the corner size that should be used given the full bounds of the shape.
Parameters | |
---|---|
bounds |
RectF |
Returns | |
---|---|
float |
getRelativePercent
float getRelativePercent ()
Returns the relative percent used for this CornerSize
in range [0,1].
Returns | |
---|---|
float |
hashCode
int hashCode ()
Returns | |
---|---|
int |
Annotations
Interfaces
Classes
- AbsoluteCornerSize
- CornerTreatment
- CutCornerTreatment
- EdgeTreatment
- InterpolateOnScrollPositionChangeHelper
- MarkerEdgeTreatment
- MaterialShapeDrawable
- MaterialShapeUtils
- OffsetEdgeTreatment
- RelativeCornerSize
- RoundedCornerTreatment
- ShapeAppearanceModel
- ShapeAppearanceModel.Builder
- ShapeAppearancePathProvider
- ShapePath
- ShapePath.PathArcOperation
- ShapePath.PathCubicOperation
- ShapePath.PathLineOperation
- ShapePath.PathOperation
- ShapePath.PathQuadOperation
- ShapePathModel
- TriangleEdgeTreatment