Comments (8)
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.
so com.glidebitmappool.internal.* can be remove and use glide‘s instead .
from glidebitmappool.
I am not using Glide. I am using Fresco. But I wanted to have it for my use cases. And Smaller size.
from glidebitmappool.
Yes you are free to remove it as per your requirement
from glidebitmappool.
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.
Yes, you are correct. But my use case was different . so I used Fresco Library.
from glidebitmappool.
thanks !
from glidebitmappool.
You are welcome
from glidebitmappool.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glidebitmappool.