|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xtremelabs.imageutils.AbstractImageLoader.Options
public static class AbstractImageLoader.Options
This class provides all the options that can be set when making loadImage calls. See the Javadocs for the individual fields for more detail.
Nested Class Summary | |
---|---|
static class |
AbstractImageLoader.Options.ScalingPreference
AbstractImageLoader.Options.ScalingPreference.LARGER_THAN_VIEW_OR_FULL_SIZE This option guarantees that the image being returned will be larger than the view's bounds, or it's maximum size. |
Field Summary | |
---|---|
boolean |
autoDetectBounds
If true, the ImageLoader will attempt to optimize the sample size for the image being returned. Default value: true. |
java.lang.Integer |
heightBounds
If specified, this value allows the cacher to conserve memory by estimating the optimal sample size. |
java.lang.Integer |
overrideSampleSize
Forces the image to be decoded with the specified sample size. |
java.lang.Integer |
placeholderImageResourceId
The ImageLoader will load the resource at this ID prior to making the image request. Default value: null. |
Bitmap.Config |
preferedConfig
Modify this value to change the colour format of decoded bitmaps. |
AbstractImageLoader.Options.ScalingPreference |
scalingPreference
The ImageLoader has the ability to automatically scale down images according to the bounds of the ImageView provided, or the bounds specified within this options object. |
java.lang.Integer |
unsuccessfulLoadResourceId
In the event that the image load fails, the resource at the provided ID will be loaded into the ImageView. Default value: null. |
boolean |
useScreenSizeAsBounds
If true, the ImageLoader will select a sample size that will optimize the image size for the size of the screen. Default value: true. |
java.lang.Integer |
widthBounds
If specified, this value allows the cacher to conserve memory by estimating the optimal sample size. |
boolean |
wipeOldImageOnPreload
If set to true, the ImageLoader will, before getting the Bitmap, replace the current image within the ImageView with either a null Bitmap or the image resource indicated by the placeholderImageResourceId. If set to false, the ImageLoader will only attempt to load the requested Bitmap to the view. |
Constructor Summary | |
---|---|
AbstractImageLoader.Options()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.Integer overrideSampleSize
public java.lang.Integer heightBounds
public java.lang.Integer widthBounds
public boolean autoDetectBounds
public boolean useScreenSizeAsBounds
public AbstractImageLoader.Options.ScalingPreference scalingPreference
AbstractImageLoader.Options.ScalingPreference
for further details.
public boolean wipeOldImageOnPreload
public java.lang.Integer placeholderImageResourceId
public java.lang.Integer unsuccessfulLoadResourceId
public Bitmap.Config preferedConfig
Constructor Detail |
---|
public AbstractImageLoader.Options()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |