|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ViewScaleType>
com.nostra13.universalimageloader.core.assist.ViewScaleType
public enum ViewScaleType
Simplify ImageView's scale type to 2 types: FIT_INSIDE
and CROP
Enum Constant Summary | |
---|---|
CROP
Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view. |
|
FIT_INSIDE
Scale the image uniformly (maintain the image's aspect ratio) so that at least one dimension (width or height) of the image will be equal to or less the corresponding dimension of the view. |
Method Summary | |
---|---|
static ViewScaleType |
fromImageView(android.widget.ImageView imageView)
Defines scale type of ImageView. |
static ViewScaleType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ViewScaleType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ViewScaleType FIT_INSIDE
public static final ViewScaleType CROP
Method Detail |
---|
public static ViewScaleType[] values()
for (ViewScaleType c : ViewScaleType.values()) System.out.println(c);
public static ViewScaleType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static ViewScaleType fromImageView(android.widget.ImageView imageView)
imageView
- ImageView
FIT_INSIDE
for
ImageView.ScaleType.FIT_CENTER
ImageView.ScaleType.FIT_XY
ImageView.ScaleType.FIT_START
ImageView.ScaleType.FIT_END
ImageView.ScaleType.CENTER_INSIDE
CROP
for
ImageView.ScaleType.CENTER
ImageView.ScaleType.CENTER_CROP
ImageView.ScaleType.MATRIX
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |