Enum ConstraintAnchor.Type
- java.lang.Object
-
- java.lang.Enum<ConstraintAnchor.Type>
-
- androidx.constraintlayout.core.widgets.ConstraintAnchor.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConstraintAnchor.Type>
- Enclosing class:
- ConstraintAnchor
public static enum ConstraintAnchor.Type extends java.lang.Enum<ConstraintAnchor.Type>
Define the type of anchor
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConstraintAnchor.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConstraintAnchor.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ConstraintAnchor.Type NONE
-
LEFT
public static final ConstraintAnchor.Type LEFT
-
TOP
public static final ConstraintAnchor.Type TOP
-
RIGHT
public static final ConstraintAnchor.Type RIGHT
-
BOTTOM
public static final ConstraintAnchor.Type BOTTOM
-
BASELINE
public static final ConstraintAnchor.Type BASELINE
-
CENTER
public static final ConstraintAnchor.Type CENTER
-
CENTER_X
public static final ConstraintAnchor.Type CENTER_X
-
CENTER_Y
public static final ConstraintAnchor.Type CENTER_Y
-
-
Method Detail
-
values
public static ConstraintAnchor.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConstraintAnchor.Type c : ConstraintAnchor.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConstraintAnchor.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-