|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ImageView com.android.volley.toolbox.NetworkImageView
public class NetworkImageView
Handles fetching an image from a URL as well as the life-cycle of the associated request.
Constructor Summary | |
---|---|
NetworkImageView(Context context)
|
|
NetworkImageView(Context context,
AttributeSet attrs)
|
|
NetworkImageView(Context context,
AttributeSet attrs,
int defStyle)
|
Method Summary | |
---|---|
protected void |
drawableStateChanged()
|
protected void |
onDetachedFromWindow()
|
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
|
void |
setDefaultImageResId(int defaultImage)
Sets the default image resource ID to be used for this view until the attempt to load it completes. |
void |
setErrorImageResId(int errorImage)
Sets the error image resource ID to be used for this view in the event that the image requested fails to load. |
void |
setImageUrl(String url,
ImageLoader imageLoader)
Sets URL of the image that should be loaded into this view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkImageView(Context context)
public NetworkImageView(Context context, AttributeSet attrs)
public NetworkImageView(Context context, AttributeSet attrs, int defStyle)
Method Detail |
---|
public void setImageUrl(String url, ImageLoader imageLoader)
setDefaultImageResId(int)
on the view.
NOTE: If applicable, setDefaultImageResId(int)
and
setErrorImageResId(int)
should be called prior to calling
this function.
url
- The URL that should be loaded into this ImageView.imageLoader
- ImageLoader that will be used to make the request.public void setDefaultImageResId(int defaultImage)
public void setErrorImageResId(int errorImage)
protected void onLayout(boolean changed, int left, int top, int right, int bottom)
protected void onDetachedFromWindow()
protected void drawableStateChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |