Serializable
, Comparable<LinearLayout.GrowPolicy>
public static enum LinearLayout.GrowPolicy extends Enum<LinearLayout.GrowPolicy>
Enum Constant | Description |
---|---|
CanGrow |
With this grow policy, if the container has more space available then this component will be grown to fill
the extra space.
|
None |
This is the default grow policy, the component will not become larger than the preferred size, even if the
container can offer more.
|
Modifier and Type | Method | Description |
---|---|---|
static LinearLayout.GrowPolicy |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static LinearLayout.GrowPolicy[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LinearLayout.GrowPolicy None
public static final LinearLayout.GrowPolicy CanGrow
public static LinearLayout.GrowPolicy[] values()
for (LinearLayout.GrowPolicy c : LinearLayout.GrowPolicy.values()) System.out.println(c);
public static LinearLayout.GrowPolicy 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 © 2020. All rights reserved.