public interface HttpImageView
HttpImageView is a ImageView that can be used to retrieve
images (bitmap) from by the use of a HttpKit. It also handles
automatically ListViews recycle mechanisms| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Get the height of the
HttpImageView in raw pixels |
String |
getUrl()
Get the url of the current image
|
int |
getWidth()
Get the width of the
HttpImageView in raw pixels |
boolean |
hasLastRequestError()
Return true, if the last http
|
void |
setErrorDrawable(android.graphics.drawable.Drawable d)
Set the error
Drawable, that will be displayed when an error has
occurred while loading |
void |
setErrorResource(int errorResource)
Sets the error Resource that should be displayed, when an error has
occurred while loading the real image resource
|
void |
setPlaceholderBitmap(android.graphics.Bitmap b)
Set the place holder as bitmap.
|
void |
setPlaceholderResource(int placeholderResource)
Set the placeholder resource.
|
void |
setUrl(String url)
Sets the current url of the image that will be loaded now
|
void |
showErrorImage()
Show the error image.
|
void |
showLoadedBitmap(android.graphics.Bitmap bitmap,
boolean loadedImmediatly)
Sets and shows the loaded Image
|
void |
showPlaceholder()
Shows a place holder image while loading the real image resource
|
String getUrl()
void setUrl(String url)
url - boolean hasLastRequestError()
void showErrorImage()
void showPlaceholder()
void setPlaceholderBitmap(android.graphics.Bitmap b)
b - void setErrorDrawable(android.graphics.drawable.Drawable d)
Drawable, that will be displayed when an error has
occurred while loadingd - void setErrorResource(int errorResource)
errorResource - void setPlaceholderResource(int placeholderResource)
placeholderResource - void showLoadedBitmap(android.graphics.Bitmap bitmap,
boolean loadedImmediatly)
bitmap - The Bitmap that has been loadedloadedImmediatly - true, if the Bitmap has been loaded immediatly (from
cache)int getWidth()
HttpImageView in raw pixelsint getHeight()
HttpImageView in raw pixelsCopyright © 2015 Hannes Dorfmann. All rights reserved.