public class RoundedBitmapDisplayer extends java.lang.Object implements BitmapDisplayer
Modifier and Type | Class and Description |
---|---|
static class |
RoundedBitmapDisplayer.RoundedDrawable |
Modifier and Type | Field and Description |
---|---|
protected int |
cornerRadius |
protected int |
margin |
Constructor and Description |
---|
RoundedBitmapDisplayer(int cornerRadiusPixels) |
RoundedBitmapDisplayer(int cornerRadiusPixels,
int marginPixels) |
Modifier and Type | Method and Description |
---|---|
void |
display(android.graphics.Bitmap bitmap,
ImageAware imageAware,
LoadedFrom loadedFrom)
Displays bitmap in
ImageAware . |
public RoundedBitmapDisplayer(int cornerRadiusPixels)
public RoundedBitmapDisplayer(int cornerRadiusPixels, int marginPixels)
public void display(android.graphics.Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom)
BitmapDisplayer
ImageAware
.
NOTE: This method is called on UI thread so it's strongly recommended not to do any heavy work in it.display
in interface BitmapDisplayer
bitmap
- Source bitmapimageAware
- Image aware view to
display BitmaploadedFrom
- Source of loaded image