Giter VIP home page Giter VIP logo

Comments (8)

amitshekhariitbhu avatar amitshekhariitbhu commented on July 20, 2024

it's almost same. From there only I created it for my use-cases and added few things to handle different android versions. That's why it's name is Glide Bitmap Pool.

from glidebitmappool.

luckyjmcc avatar luckyjmcc commented on July 20, 2024

so com.glidebitmappool.internal.* can be remove and use glide‘s instead .

from glidebitmappool.

amitshekhariitbhu avatar amitshekhariitbhu commented on July 20, 2024

I am not using Glide. I am using Fresco. But I wanted to have it for my use cases. And Smaller size.

from glidebitmappool.

amitshekhariitbhu avatar amitshekhariitbhu commented on July 20, 2024

Yes you are free to remove it as per your requirement

from glidebitmappool.

luckyjmcc avatar luckyjmcc commented on July 20, 2024

thanks , in my opinion , using glide's is a good chooice , in situation below:
`
public class GlideConfiguration implements GlideModule {

@Override
public void applyOptions(Context context, GlideBuilder builder) {
    // Apply options to the builder here.
    builder.setDiskCache(new InternalCacheDiskCacheFactory(context, 10 * 1024));//设置使用InternalCacheDiskCacheFactory磁盘高速缓存的大小
    //builder.setDiskCache(new InternalCacheDiskCacheFactory(context, cacheDirectoryName, yourSizeInBytes));//设置磁盘高速缓存的位置
    //builder.setDiskCache(new ExternalCacheDiskCacheFactory(context, cacheDirectoryName, yourSizeInBytes));//缓存在sd卡上公共缓存目录
    builder.setMemoryCache(new LruResourceCache(10 * 1024));//设置大小和/或实现你希望使用内存缓存
    //builder.setBitmapPool(new LruBitmapPool(10 * 1024));
    //统一本地图片和网络图片的BitmapPool
    builder.setBitmapPool(GlideBitmapPool.getInstance().getBitmapPool());
    builder.setDecodeFormat(DecodeFormat.PREFER_RGB_565);
}

@Override
public void registerComponents(Context context, Glide glide) {
    // register ModelLoaders here.
}

}`

from glidebitmappool.

amitshekhariitbhu avatar amitshekhariitbhu commented on July 20, 2024

Yes, you are correct. But my use case was different . so I used Fresco Library.

from glidebitmappool.

luckyjmcc avatar luckyjmcc commented on July 20, 2024

thanks !

from glidebitmappool.

amitshekhariitbhu avatar amitshekhariitbhu commented on July 20, 2024

You are welcome

from glidebitmappool.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.