public static enum Constant.ScaleMode extends java.lang.Enum<Constant.ScaleMode>
| Enum Constant and Description |
|---|
AspectFill
保持图片的比例不变化,可以不显示全部图片,但是layouot区域没有空白边距
|
AspectFit
保持图片比例不变化, 需要显示全部图片, layout可以有空白边距
|
ScacleToFill
可以改变图片的长宽比列, 拉伸图片, 填充整个layoout区域
|
| Modifier and Type | Method and Description |
|---|---|
static Constant.ScaleMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constant.ScaleMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constant.ScaleMode AspectFill
public static final Constant.ScaleMode AspectFit
public static final Constant.ScaleMode ScacleToFill
public static Constant.ScaleMode[] values()
for (Constant.ScaleMode c : Constant.ScaleMode.values()) System.out.println(c);
public static Constant.ScaleMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null