| Enum Constant and Description |
|---|
CENTER_CROP
中心裁剪(将图片放在ImageView的中心点,然后对图片进行等比例缩放,等比例缩放图片的宽和高均不小于控件对应的宽高)
|
CENTER_INSIDE
中心填充(将图片放在ImageView的中心点,然后对图片进行等比例缩放,等比例缩放图片的宽和高均不大于控件对应的宽高)
|
CIRCLE_CROP
圆形裁剪
|
DEFAULT
默认方式
|
FIT_CENTER
中心适应(将图片放在ImageView的中心点,对图片进行等比例缩放从而完整地显示图片,使得图片的宽高中至少有一个值恰好等于控件的宽或者高)
|
| Modifier and Type | Method and Description |
|---|---|
static AlignEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AlignEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlignEnum DEFAULT
public static final AlignEnum CENTER_CROP
public static final AlignEnum CENTER_INSIDE
public static final AlignEnum FIT_CENTER
public static final AlignEnum CIRCLE_CROP
public static AlignEnum[] values()
for (AlignEnum c : AlignEnum.values()) System.out.println(c);
public static AlignEnum 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