Stay organized with collections
Save and categorize content based on your preferences.
CornerFamily
public
abstract
@interface
CornerFamily
implements
Annotation
com.google.android.material.shape.CornerFamily
|
CornerFamily enum that holds which family to be used to create a CornerTreatment
The corner family determines which family to use to create a CornerTreatment
. Setting
the CornerFamily to ROUNDED
sets the corner treatment to RoundedCornerTreatment
, and setting the CornerFamily to CUT
sets the corner
treatment to a CutCornerTreatment
.
Summary
Inherited methods |
From interface
java.lang.annotation.Annotation
abstract
Class<? extends Annotation>
|
annotationType()
|
abstract
boolean
|
equals(Object arg0)
|
abstract
int
|
hashCode()
|
abstract
String
|
toString()
|
|
Constants
CUT
public static final int CUT
Corresponds to a CutCornerTreatment
.
Constant Value:
1
(0x00000001)
ROUNDED
public static final int ROUNDED
Corresponds to a RoundedCornerTreatment
.
Constant Value:
0
(0x00000000)
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,["# CornerFamily\n\nSummary: [Constants](#constants) \\| [Inherited Methods](#inhmethods) \n\nCornerFamily\n============\n\n\n`\npublic\n\n\nabstract\n@interface\nCornerFamily\n`\n\n\n`\n\n\nimplements\n\nAnnotation\n\n\n`\n\n|------------------------------------------------|\n| com.google.android.material.shape.CornerFamily |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCornerFamily enum that holds which family to be used to create a [CornerTreatment](/reference/com/google/android/material/shape/CornerTreatment)\n\nThe corner family determines which family to use to create a [CornerTreatment](/reference/com/google/android/material/shape/CornerTreatment). Setting\nthe CornerFamily to [ROUNDED](/reference/com/google/android/material/shape/CornerFamily#ROUNDED) sets the corner treatment to [RoundedCornerTreatment](/reference/com/google/android/material/shape/RoundedCornerTreatment), and setting the CornerFamily to [CUT](/reference/com/google/android/material/shape/CornerFamily#CUT) sets the corner\ntreatment to a [CutCornerTreatment](/reference/com/google/android/material/shape/CutCornerTreatment).\n\nSummary\n-------\n\n| ### Constants ||\n|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [CUT](/reference/com/google/android/material/shape/CornerFamily#CUT) Corresponds to a [CutCornerTreatment](/reference/com/google/android/material/shape/CutCornerTreatment). |\n| `int` | [ROUNDED](/reference/com/google/android/material/shape/CornerFamily#ROUNDED) Corresponds to a [RoundedCornerTreatment](/reference/com/google/android/material/shape/RoundedCornerTreatment). |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From interface ` java.lang.annotation.Annotation ` |-----------------------------------------|-------------------------| | ` abstract Class\u003c? extends Annotation\u003e` | ` annotationType() ` | | ` abstract boolean` | ` equals(Object arg0) ` | | ` abstract int` | ` hashCode() ` | | ` abstract String` | ` toString() ` | ||\n\nConstants\n---------\n\n### CUT\n\n```\npublic static final int CUT\n```\n\nCorresponds to a [CutCornerTreatment](/reference/com/google/android/material/shape/CutCornerTreatment).\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### ROUNDED\n\n```\npublic static final int ROUNDED\n```\n\nCorresponds to a [RoundedCornerTreatment](/reference/com/google/android/material/shape/RoundedCornerTreatment).\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)"]]