- All Implemented Interfaces:
Serializable
,Comparable<LinearLayout.Alignment>
,java.lang.constant.Constable
- Enclosing class:
LinearLayout
This enum type will decide the alignment of a component on the counter-axis, meaning the horizontal alignment on
vertical
LinearLayout
s and vertical alignment on horizontal LinearLayout
s.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe component will be placed to the left (for vertical layouts) or top (for horizontal layouts)The component will be placed horizontally centered (for vertical layouts) or vertically centered (for horizontal layouts)The component will be placed to the right (for vertical layouts) or bottom (for horizontal layouts)The component will be forced to take up all the horizontal space (for vertical layouts) or vertical space (for horizontal layouts) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LinearLayout.Alignment
Returns the enum constant of this type with the specified name.static LinearLayout.Alignment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Beginning
The component will be placed to the left (for vertical layouts) or top (for horizontal layouts) -
Center
The component will be placed horizontally centered (for vertical layouts) or vertically centered (for horizontal layouts) -
End
The component will be placed to the right (for vertical layouts) or bottom (for horizontal layouts) -
Fill
The component will be forced to take up all the horizontal space (for vertical layouts) or vertical space (for horizontal layouts)
-
-
Constructor Details
-
Alignment
private Alignment()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-