public class ImageLoader
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ImageLoader.Type |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addBitmapToLruCache(java.lang.String path,
android.graphics.Bitmap bm)
将图片加入LruCache
|
java.lang.String |
bytes2hex02(byte[] bytes)
方式二
|
protected android.graphics.Bitmap |
decodeSampledBitmapFromPath(java.lang.String path,
int width,
int height)
根据图片需要显示的宽和高对图片进行压缩
|
java.io.File |
getDiskCacheDir(android.content.Context context,
java.lang.String uniqueName)
获得缓存图片的地址
|
static ImageLoader |
getInstance() |
static ImageLoader |
getInstance(int threadCount,
ImageLoader.Type type) |
void |
loadImage(java.lang.String path,
android.widget.ImageView imageView,
boolean isFromNet)
根据path为imageview设置图片
|
java.lang.String |
md5(java.lang.String str)
利用签名辅助类,将字符串字节数组
|
public static ImageLoader getInstance()
public static ImageLoader getInstance(int threadCount, ImageLoader.Type type)
public void loadImage(java.lang.String path,
android.widget.ImageView imageView,
boolean isFromNet)
path - imageView - public java.lang.String md5(java.lang.String str)
str - public java.lang.String bytes2hex02(byte[] bytes)
bytes - protected void addBitmapToLruCache(java.lang.String path,
android.graphics.Bitmap bm)
path - bm - protected android.graphics.Bitmap decodeSampledBitmapFromPath(java.lang.String path,
int width,
int height)
path - width - height - public java.io.File getDiskCacheDir(android.content.Context context,
java.lang.String uniqueName)
context - uniqueName -