# CornerSize

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/shape/CornerSize.java)

*** ** * ** ***


```
public interface CornerSize
```

<br />

Known direct subclasses [AbsoluteCornerSize](https://developer.android.com/reference/com/google/android/material/shape/AbsoluteCornerSize), [RelativeCornerSize](https://developer.android.com/reference/com/google/android/material/shape/RelativeCornerSize)

|---|---|
| `https://developer.android.com/reference/com/google/android/material/shape/AbsoluteCornerSize` | A `https://developer.android.com/reference/com/google/android/material/shape/CornerSize` that always uses the provided size and ignores the bounds. |
| `https://developer.android.com/reference/com/google/android/material/shape/RelativeCornerSize` | A `https://developer.android.com/reference/com/google/android/material/shape/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 `https://developer.android.com/reference/com/google/android/material/shape/CornerTreatment`.

## Summary

| ### Public methods |
|---|---|
| `abstract float` | `https://developer.android.com/reference/com/google/android/material/shape/CornerSize#getCornerSize(RectF)(RectF bounds)` Returns the corner size that should be used given the full bounds of the shape. |

## Public methods

### getCornerSize

```
abstract float getCornerSize(RectF bounds)
```

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