Modifier and Type | Method and Description |
---|---|
RequestCreator |
RequestCreator.centerCrop()
Crops an image inside of the bounds specified by
resize(int, int) rather than
distorting the aspect ratio. |
RequestCreator |
RequestCreator.centerInside()
Centers an image inside of the bounds specified by
resize(int, int) . |
RequestCreator |
RequestCreator.config(android.graphics.Bitmap.Config config)
Attempt to decode the image using the specified config.
|
RequestCreator |
RequestCreator.error(android.graphics.drawable.Drawable errorDrawable)
An error drawable to be used if the request image could not be loaded.
|
RequestCreator |
RequestCreator.error(int errorResId)
An error drawable to be used if the request image could not be loaded.
|
RequestCreator |
RequestCreator.fit()
Attempt to resize the image to fit exactly into the target
ImageView 's bounds. |
RequestCreator |
Picasso.load(File file)
Start an image request using the specified image file.
|
RequestCreator |
Picasso.load(int resourceId)
Start an image request using the specified drawable resource ID.
|
RequestCreator |
Picasso.load(String path)
Start an image request using the specified path.
|
RequestCreator |
Picasso.load(android.net.Uri uri)
Start an image request using the specified URI.
|
RequestCreator |
RequestCreator.memoryPolicy(MemoryPolicy policy,
MemoryPolicy... additional)
Specifies the
MemoryPolicy to use for this request. |
RequestCreator |
RequestCreator.networkPolicy(NetworkPolicy policy,
NetworkPolicy... additional)
Specifies the
NetworkPolicy to use for this request. |
RequestCreator |
RequestCreator.noFade()
Disable brief fade in of images loaded from the disk cache or network.
|
RequestCreator |
RequestCreator.noPlaceholder()
Explicitly opt-out to having a placeholder set when calling
into . |
RequestCreator |
RequestCreator.onlyScaleDown()
Only resize an image if the original image size is bigger than the target size
specified by
resize(int, int) . |
RequestCreator |
RequestCreator.placeholder(android.graphics.drawable.Drawable placeholderDrawable)
A placeholder drawable to be used while the image is being loaded.
|
RequestCreator |
RequestCreator.placeholder(int placeholderResId)
A placeholder drawable to be used while the image is being loaded.
|
RequestCreator |
RequestCreator.priority(Picasso.Priority priority)
Set the priority of this request.
|
RequestCreator |
RequestCreator.resize(int targetWidth,
int targetHeight)
Resize the image to the specified size in pixels.
|
RequestCreator |
RequestCreator.resizeDimen(int targetWidthResId,
int targetHeightResId)
Resize the image to the specified dimension size.
|
RequestCreator |
RequestCreator.rotate(float degrees)
Rotate the image by the specified degrees.
|
RequestCreator |
RequestCreator.rotate(float degrees,
float pivotX,
float pivotY)
Rotate the image by the specified degrees around a pivot point.
|
RequestCreator |
RequestCreator.skipMemoryCache()
Deprecated.
Use
memoryPolicy(MemoryPolicy, MemoryPolicy...) instead. |
RequestCreator |
RequestCreator.stableKey(String stableKey)
Sets the stable key for this request to be used instead of the URI or resource ID when
caching.
|
RequestCreator |
RequestCreator.tag(Object tag)
Assign a tag to this request.
|
RequestCreator |
RequestCreator.transform(List<? extends Transformation> transformations)
Add a list of custom transformations to be applied to the image.
|
RequestCreator |
RequestCreator.transform(Transformation transformation)
Add a custom transformation to be applied to the image.
|
Copyright © 2013-2015 Square, Inc.. All Rights Reserved.