Codota Logo
UsingFreqLimitedMemoryCache.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.nostra13.universalimageloader.cache.memory.impl.UsingFreqLimitedMemoryCache
constructor

Best Java code snippets using com.nostra13.universalimageloader.cache.memory.impl.UsingFreqLimitedMemoryCache.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: qiushi123/VideoDemoQcl

private void initUniversalImageLoader() {
  DisplayImageOptions options = new DisplayImageOptions.Builder()
      .showImageOnLoading(new ColorDrawable(Color.parseColor("#f0f0f0")))
      .resetViewBeforeLoading(true)
      .cacheInMemory(true)
      .cacheOnDisk(true)
      .considerExifParams(true)
      .imageScaleType(ImageScaleType.EXACTLY_STRETCHED)
      .bitmapConfig(Bitmap.Config.RGB_565)
      .build();
  int memClass = ((ActivityManager) getSystemService(Context.ACTIVITY_SERVICE))
      .getMemoryClass();
  int memCacheSize = 1024 * 1024 * memClass / 8;
  File cacheDir = new File(Environment.getExternalStorageDirectory().getPath() + "/jiecao/cache");
  ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this)
      .threadPoolSize(3)
      .threadPriority(Thread.NORM_PRIORITY - 2)
      .denyCacheImageMultipleSizesInMemory()
      .diskCacheFileNameGenerator(new Md5FileNameGenerator())
      .memoryCache(new UsingFreqLimitedMemoryCache(memCacheSize))
      .memoryCacheSize(memCacheSize)
      .diskCacheSize(50 * 1024 * 1024)
      .tasksProcessingOrder(QueueProcessingType.LIFO)
      .diskCache(new UnlimitedDiskCache(cacheDir))
      .imageDownloader(new BaseImageDownloader(this, 5 * 1000, 30 * 1000))
      .defaultDisplayImageOptions(options)
      .build();
  ImageLoader.getInstance().init(config);
}
origin: q422013/IMChat

.memoryCache(new UsingFreqLimitedMemoryCache(1 * 1024 * 1024))
origin: LiqiNew/MyUtils

.memoryCache(new UsingFreqLimitedMemoryCache(2 * 1024 * 1024)) // 你可以通过自己的内存缓存实现
com.nostra13.universalimageloader.cache.memory.implUsingFreqLimitedMemoryCache<init>

Popular methods of UsingFreqLimitedMemoryCache

    Popular in Java

    • Creating JSON documents from java classes using gson
    • onRequestPermissionsResult (Fragment)
    • scheduleAtFixedRate (ScheduledExecutorService)
      Creates and executes a periodic action that becomes enabled first after the given initial delay, and
    • getExternalFilesDir (Context)
    • FileInputStream (java.io)
      A FileInputStream obtains input bytes from a file in a file system. What files are available depends
    • String (java.lang)
    • Format (java.text)
      The base class for all formats. This is an abstract base class which specifies the protocol for clas
    • Deque (java.util)
      A linear collection that supports element insertion and removal at both ends. The name deque is shor
    • GregorianCalendar (java.util)
      GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
    • SortedSet (java.util)
      A Set that further provides a total ordering on its elements. The elements are ordered using their C
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now