public interface ImageAware
ImageLoader
.
It can wrap any Android View
which can be accessed by getWrappedView()
. Wrapped
view is returned in ImageLoadingListener
's
callbacks.ViewAware
,
ImageViewAware
,
NonViewAware
限定符和类型 | 方法和说明 |
---|---|
int |
getHeight()
Returns height of image aware view.
|
int |
getId()
Returns ID of image aware view.
|
ViewScaleType |
getScaleType()
Returns scale type which is used for
scaling image for this image aware view.
|
int |
getWidth()
Returns width of image aware view.
|
android.view.View |
getWrappedView()
Returns wrapped Android
View . |
boolean |
isCollected()
Returns a flag whether image aware view is collected by GC or whatsoever.
|
boolean |
setImageBitmap(android.graphics.Bitmap bitmap)
Sets image bitmap into this image aware view.
|
boolean |
setImageDrawable(android.graphics.drawable.Drawable drawable)
Sets image drawable into this image aware view.
|
int getWidth()
int getHeight()
ViewScaleType getScaleType()
android.view.View getWrappedView()
View
. Can return null if no view is wrapped or view was
collected by GC.boolean isCollected()
ImageLoadingListener#onLoadingCancelled(String, View)
callback.int getId()
boolean setImageDrawable(android.graphics.drawable.Drawable drawable)
BitmapDisplayer
.< br />
Is called on UI thread if ImageLoader was called on UI thread. Otherwise - on background thread.boolean setImageBitmap(android.graphics.Bitmap bitmap)
Bitmap
in this image view aware.
Actually it's used only in
BitmapDisplayer
.< br />
Is called on UI thread if ImageLoader was called on UI thread. Otherwise - on background thread.