Comments (4)
@jinzw1993 确实是这样,使用 ViewPager 的话,每个 View 都没有重用,那么加载到内存中的 Bitmap 也就不会释放,因此会导致内存持续上涨(但是每一张图带来的内存增长应该还好)。
可以考虑换成类似于 RecyclerView 的 View 重用方案,这样就能把内存占用限制住(不会持续增加)。
在查看多图时,BIV 相对于 Fresco 会有两大优势:1. 每一张大图占用的内存小得多;2. Fresco 会把加载过的 Bitmap 缓存在内存中,即便 View 被重用或者销毁,因此用 Fresco 无法限制住内存占用。
我自己项目中确实也遇到了这个问题,但是最近没有时间进一步优化并整理出来,抱歉。欢迎提交 pr!
from bigimageviewer.
from bigimageviewer.
现在有解决这个问题吗?
from bigimageviewer.
For image list widget, track #26
from bigimageviewer.
Related Issues (20)
- saveImageIntoGallery not working on Android 11 HOT 3
- Set Small image Zoomable HOT 2
- Some important zoom feature didn't find yet HOT 1
- Error inflating class com.github.piasy.biv.view.BigImageView HOT 1
- Choose MIME type for saving image? HOT 5
- Can not load Bitmap HOT 1
- 小图可以设置充满屏幕宽度吗。现在是自适应大小,所以显着很小 HOT 3
- How to quit zoom mode? HOT 1
- Failed to resolve: com.github.piasy:GlideImageLoader HOT 1
- 关于使用代理加载图片的问题 HOT 1
- 使用体验
- 请问可以获取BigImageView的bitmap吗? HOT 1
- 请问支持图片的旋转吗 HOT 1
- Scaling GIF images HOT 1
- 加水印 HOT 1
- Clear (previously) loaded image from BigImageView in RecyclerView's view holder HOT 1
- 求支持avif格式图片 HOT 2
- 共享元素动画 HOT 1
- How can I get the zoom in and zoom out ratio that occurs HOT 1
- zoom in and zoom out all images together in the recyclerview
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 bigimageviewer.