public static enum LinearLayout.Alignment extends Enum<LinearLayout.Alignment>
LinearLayout
s and vertical alignment on horizontal LinearLayout
s.Enum Constant and Description |
---|
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)
|
Modifier and Type | Method and Description |
---|---|
static LinearLayout.Alignment |
valueOf(String name)
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.
|
public static final LinearLayout.Alignment Beginning
public static final LinearLayout.Alignment Center
public static final LinearLayout.Alignment End
public static final LinearLayout.Alignment Fill
public static LinearLayout.Alignment[] values()
for (LinearLayout.Alignment c : LinearLayout.Alignment.values()) System.out.println(c);
public static LinearLayout.Alignment valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All rights reserved.