net.tsz.afinal.bitmap.core
类 BitmapCache.ImageCacheParams

java.lang.Object
  继承者 net.tsz.afinal.bitmap.core.BitmapCache.ImageCacheParams
包容类:
BitmapCache

public static class BitmapCache.ImageCacheParams
extends java.lang.Object

A holder class that contains cache parameters.


字段摘要
 boolean clearDiskCacheOnStart
           
 CompressFormat compressFormat
           
 int compressQuality
           
 java.io.File diskCacheDir
           
 boolean diskCacheEnabled
           
 int diskCacheSize
           
 boolean initDiskCacheOnCreate
           
 int memCacheSize
           
 boolean memoryCacheEnabled
           
 
构造方法摘要
BitmapCache.ImageCacheParams(java.io.File diskCacheDir)
           
BitmapCache.ImageCacheParams(java.lang.String diskCacheDir)
           
 
方法摘要
 void setCompressFormat(CompressFormat format)
           
 void setDiskCacheSize(int diskCacheSize)
           
 void setMemCacheSize(int memCacheSize)
           
 void setMemCacheSizePercent(Context context, float percent)
          设置缓存大小
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

memCacheSize

public int memCacheSize

diskCacheSize

public int diskCacheSize

diskCacheDir

public java.io.File diskCacheDir

compressFormat

public CompressFormat compressFormat

compressQuality

public int compressQuality

memoryCacheEnabled

public boolean memoryCacheEnabled

diskCacheEnabled

public boolean diskCacheEnabled

clearDiskCacheOnStart

public boolean clearDiskCacheOnStart

initDiskCacheOnCreate

public boolean initDiskCacheOnCreate
构造方法详细信息

BitmapCache.ImageCacheParams

public BitmapCache.ImageCacheParams(java.io.File diskCacheDir)

BitmapCache.ImageCacheParams

public BitmapCache.ImageCacheParams(java.lang.String diskCacheDir)
方法详细信息

setMemCacheSizePercent

public void setMemCacheSizePercent(Context context,
                                   float percent)
设置缓存大小

参数:
context -
percent - 百分比,值的范围是在 0.05 到 0.8之间

setMemCacheSize

public void setMemCacheSize(int memCacheSize)

setDiskCacheSize

public void setDiskCacheSize(int diskCacheSize)

setCompressFormat

public void setCompressFormat(CompressFormat format)