Comments (5)
Everything I read claims that a ListView would appear to be the proper solution for this issue as it automatically recycles elements. However, Google talks about the grid list building block, which is basically what the application is trying to do.
It seems GridLists can recycle resources if handled correctly. It might be worthwhile to try to investigate the code discussed here as a possible solution to the memory issue and also as a chance to make the application feel more responsive.
from atarashii.
GridView actually does recycle its elements, the same way that ListView does, they both extend from AbsListView. I think the problem however is that the ImageDownloader class (which also handles saving and serving preloaded images) keeps an internal cache loaded in memory. Whole this helps performance after the images are initially out into the cache, the cache becomes too big and an OOM exception is thrown.
Ergo, the ImageDownloader needs to be made to release resources.
from atarashii.
That does make more sense than what I posted.
from atarashii.
The second link you posted is pretty good though, it reminded me that WeakReferences exist, which could probably fix the problem. (Another thing I never actually thought I'd use, how 'bout that!)
from atarashii.
Should be resolved as of 2a2c1fa, closing
from atarashii.
Related Issues (20)
- Retrofit, apache & support library HOT 2
- AniList profile crash
- Add other title support again
- manga list not sorting
- Display broadcast on in anime detailview
- Side menu lag and performance issues HOT 1
- Minor problem with weird build numbers HOT 2
- Crash on Settings Scroll when language is "Portuguese Portugal" HOT 2
- Removed records are saved in the DB
- Cover image don't load when large version isn't available HOT 2
- Settings: Auto-synchronisation misunderstanding HOT 2
- [MAL] Display Anime/Manga tabs only if user has both lists. HOT 7
- YouTube & external links support
- Opening and ending songs HOT 2
- Open links in app HOT 4
- Tags not supported HOT 7
- Automatic profile update instead of timer? HOT 3
- More metadata on mangas HOT 1
- More search filtering HOT 5
- Archive project? HOT 3
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 atarashii.