-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #51 - Added ImageLoader.loadImage(...).
Added FakeBitmapDisplayer.
- Loading branch information
Showing
3 changed files
with
148 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...alImageLoader/src/com/nostra13/universalimageloader/core/display/FakeBitmapDisplayer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.nostra13.universalimageloader.core.display; | ||
|
||
import com.nostra13.universalimageloader.core.DisplayImageOptions; | ||
import com.nostra13.universalimageloader.core.ImageLoader; | ||
|
||
import android.graphics.Bitmap; | ||
import android.widget.ImageView; | ||
|
||
/** | ||
* Fake displayer which doesn't display Bitmap in ImageView. Should be used for in {@linkplain DisplayImageOptions | ||
* display options} for | ||
* {@link ImageLoader#loadImage(String, int, int, com.nostra13.universalimageloader.core.DisplayImageOptions, com.nostra13.universalimageloader.core.assist.ImageLoadingListener) | ||
* ImageLoader.loadImage()} | ||
* | ||
* @author Sergey Tarasevich (nostra13[at]gmail[dot]com) | ||
*/ | ||
public final class FakeBitmapDisplayer implements BitmapDisplayer { | ||
@Override | ||
public Bitmap display(Bitmap bitmap, ImageView imageView) { | ||
// Do nothing | ||
return bitmap; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters