|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xtremelabs.imageutils.AbstractImageLoader
com.xtremelabs.imageutils.ImageLoaderSupport
public class ImageLoaderSupport
This class simplifies the task of loading images from a URL into an
ImageView
on Android.
HOW TO USE: For use with the support library
Every Activity
or Fragment
that needs images must instantiate
its own ImageLoader
instance.
When used with an Activity
, instantiate a new ImageLoader
in
the Activity's onCreate() method. Make sure you call the ImageLoader's
onDestroy method from within the Activity's onDestroy method.
When used with a Fragment
, instantiate your ImageLoader in the
onCreateView() method. Make sure you call the ImageLoader's onDestroy method
in the onDestroyView method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.xtremelabs.imageutils.AbstractImageLoader |
---|
AbstractImageLoader.Options |
Field Summary |
---|
Fields inherited from class com.xtremelabs.imageutils.AbstractImageLoader |
---|
TAG |
Constructor Summary | |
---|---|
ImageLoaderSupport(Activity activity)
Instantiates a new ImageLoader that maps all requests to the
provided Activity . |
Method Summary |
---|
Methods inherited from class com.xtremelabs.imageutils.AbstractImageLoader |
---|
clearMemCache, destroy, invalidateFileSystemUri, loadImage, loadImage, loadImage, loadImageFromResource, precacheImageToDisk, precacheImageToDisk, precacheImageToDiskAndMemory, precacheImageToDiskAndMemory, setDefaultOptions, setMaximumDiskCacheSize, setMaximumMemCacheSize, setNetworkRequestCreator, stopLoadingImage |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageLoaderSupport(Activity activity)
ImageLoader
that maps all requests to the
provided Activity
.
This should be called from your Activity's onCreate method.
activity
- All requests to the ImageLoader
will be mapped to this
Activity
. All references are released when the
ImageLoader's onDestroy() method is called.
ThreadChecker.CalledFromWrongThreadException
- This constructor must be called from the UI thread.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |