|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bumptech.glide.Glide.Request<T>
T - The type of model that will be loaded into the targetpublic static class Glide.Request<T>
Sets a variety of type independent options including resizing, animations, and placeholders. Responsible for building or retrieving an ImagePresenter for the given target and passing the ImagePresenter the given model.
| Method Summary | |
|---|---|
Glide.Request<T> |
animate(int animationId)
Sets an animation to run on the wrapped target when an image load finishes. |
Glide.Request<T> |
approximate()
Load images at a size near the size of the target using Downsampler.AT_LEAST. |
Glide.Request<T> |
asIs()
Load images at their original size using Downsampler.NONE. |
Glide.Request<T> |
centerCrop()
Transform images using CenterCrop. |
Glide.Request<T> |
downsample(Downsampler downsampler)
Load images using the given Downsampler. |
Glide.Request<T> |
error(int resourceId)
Sets a resource to display if a load fails |
Glide.Request<T> |
fitCenter()
Transform images using FitCenter. |
void |
into(android.widget.ImageView imageView)
Start loading the image into the view. |
Glide.ContextRequest |
into(Target target)
Set the target the image will be loaded into. |
Glide.Request<T> |
listener(Glide.RequestListener<T> requestListener)
Sets a Request listener to monitor the image load. |
Glide.Request<T> |
placeholder(int resourceId)
Sets a resource to display while an image is loading |
Glide.Request<T> |
transform(Transformation transformation)
Set an arbitrary transformation to apply after an image has been loaded into memory. |
Glide.Request<T> |
transform(TransformationLoader<T> transformationLoader)
Transform images with the given TransformationLoader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Glide.Request<T> approximate()
Downsampler.AT_LEAST.
downsample(com.bumptech.glide.resize.load.Downsampler)public Glide.Request<T> asIs()
Downsampler.NONE.
downsample(com.bumptech.glide.resize.load.Downsampler)public Glide.Request<T> downsample(Downsampler downsampler)
Downsampler. Replaces any existing downsampler. Defaults to
Downsampler.AT_LEAST
downsampler - The downsampler
public Glide.Request<T> centerCrop()
CenterCrop.
transform(com.bumptech.glide.loader.transformation.TransformationLoader)public Glide.Request<T> fitCenter()
FitCenter.
transform(com.bumptech.glide.loader.transformation.TransformationLoader)public Glide.Request<T> transform(Transformation transformation)
transformation - The transformation to use
transform(com.bumptech.glide.loader.transformation.TransformationLoader)public Glide.Request<T> transform(TransformationLoader<T> transformationLoader)
TransformationLoader. Appends this transformation onto any existing
transformations
transformationLoader - The loader to obtaian a transformation for a given model
public Glide.Request<T> animate(int animationId)
animationId - The resource id of the animation to run
public Glide.Request<T> placeholder(int resourceId)
resourceId - The id of the resource to use as a placeholder
public Glide.Request<T> error(int resourceId)
resourceId - The id of the resource to use as a placeholder
public Glide.Request<T> listener(Glide.RequestListener<T> requestListener)
requestListener - The request listener to use
public void into(android.widget.ImageView imageView)
Note - This method will call View.setTag(Object) and may silently overwrite any tag that
might already be set on the view.
imageView - The view that will display the imageImagePresenter.setModel(Object)public Glide.ContextRequest into(Target target)
Note - This method does not actually start loading the view. You must first pass in a Context to
returned Request via Glide.ContextRequest.with(android.content.Context).
target - The target to load te image for
Glide.ContextRequest that can start the load
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||