Stay organized with collections
Save and categorize content based on your preferences.
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 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 |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
|
Public constructors
AbsoluteCornerSize
public AbsoluteCornerSize (float size)
Public methods
equals
public boolean equals (Object o)
getCornerSize
public float getCornerSize ()
Returns the size of this corner. Bounds aren't required since the result is always the same.
getCornerSize
public float getCornerSize (RectF bounds)
Returns the corner size that should be used given the full bounds of the shape.
hashCode
public int hashCode ()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# AbsoluteCornerSize\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nAbsoluteCornerSize\n==================\n\n\n`\npublic\n\nfinal\n\nclass\nAbsoluteCornerSize\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\nimplements\n\n`[CornerSize](/reference/com/google/android/material/shape/CornerSize)`\n\n\n`\n\n|---|------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.google.android.material.shape.AbsoluteCornerSize |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA [CornerSize](/reference/com/google/android/material/shape/CornerSize) that always uses the provided size and ignores the bounds.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[AbsoluteCornerSize](/reference/com/google/android/material/shape/AbsoluteCornerSize#AbsoluteCornerSize(float))`(float size) ` |\n\n| ### Public methods ||\n|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` boolean` | ` `[equals](/reference/com/google/android/material/shape/AbsoluteCornerSize#equals(java.lang.Object))`(Object o) ` |\n| ` float` | ` `[getCornerSize](/reference/com/google/android/material/shape/AbsoluteCornerSize#getCornerSize())`() ` Returns the size of this corner. |\n| ` float` | ` `[getCornerSize](/reference/com/google/android/material/shape/AbsoluteCornerSize#getCornerSize(android.graphics.RectF))`(RectF bounds) ` Returns the corner size that should be used given the full bounds of the shape. |\n| ` int` | ` `[hashCode](/reference/com/google/android/material/shape/AbsoluteCornerSize#hashCode())`() ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n| From interface ` `[com.google.android.material.shape.CornerSize](/reference/com/google/android/material/shape/CornerSize)` ` |-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract float` | ` `[getCornerSize](/reference/com/google/android/material/shape/CornerSize#getCornerSize(android.graphics.RectF))`(RectF bounds) ` Returns the corner size that should be used given the full bounds of the shape. | ||\n\nPublic constructors\n-------------------\n\n### AbsoluteCornerSize\n\n```\npublic AbsoluteCornerSize (float size)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|----------------|\n| `size` | `float` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### equals\n\n```\npublic boolean equals (Object o)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----|-----------------|\n| `o` | `Object` \u003cbr /\u003e |\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### getCornerSize\n\n```\npublic float getCornerSize ()\n```\n\nReturns the size of this corner. Bounds aren't required since the result is always the same.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------|--------|\n| `float` | \u003cbr /\u003e |\n\n### getCornerSize\n\n```\npublic float getCornerSize (RectF bounds)\n```\n\nReturns the corner size that should be used given the full bounds of the shape.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|----------------|\n| `bounds` | `RectF` \u003cbr /\u003e |\n\n| Returns ||\n|---------|--------|\n| `float` | \u003cbr /\u003e |\n\n### hashCode\n\n```\npublic int hashCode ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |"]]