Enum AspectRatioDecorator.ResizeMode
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum AspectRatioDecorator.ResizeMode extends Enum<AspectRatioDecorator.ResizeMode>
Resize modes for Views that use AspectRatioDecorator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAspectRatioDecorator.ResizeMode.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integerkeyprivate final EnumEntries<AspectRatioDecorator.ResizeMode>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description FITEither the width or height is decreased to obtain the desired aspect ratio.
FIXED_WIDTHThe width is fixed and the height is increased or decreased to obtain the desired aspect ratio.
FIXED_HEIGHTThe height is fixed and the width is increased or decreased to obtain the desired aspect ratio.
ZOOMEither the width or height is increased to obtain the desired aspect ratio.
FILLThe specified aspect ratio is ignored.
-
Method Summary
Modifier and Type Method Description final AspectRatioDecorator.ResizeModevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<AspectRatioDecorator.ResizeMode>values()Returns an array containing the constants of this enum type, in the order they're declared. final IntegergetKey()final EnumEntries<AspectRatioDecorator.ResizeMode>getEntries()Resize modes for Views that use AspectRatioDecorator. -
-
Method Detail
-
valueOf
final AspectRatioDecorator.ResizeMode valueOf(String value)
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.)
-
values
final Array<AspectRatioDecorator.ResizeMode> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<AspectRatioDecorator.ResizeMode> getEntries()
Resize modes for Views that use AspectRatioDecorator.
-
-
-
-