eschao / eschao/android-PageFlip
Move drawables to "drawable-nodpi" instead of "drawable" to get correct bitmap sizes
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 267
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
in demo your bitmaps in memory are astronomically huge as they are in "drawable" folder, which is "drawable-mdpi" and if you run it on modern xxxhdpi phone, you will get multiplier * 4 (i think) of each dimension, there fore each bitmap is 16times bigger in memory (124mb+ bitmaps)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the demo's Android resources and locate the bitmaps currently stored in drawable. Move the affected assets to drawable-nodpi, then run the demo on a high-density device or emulator and verify that bitmap dimensions are not density-scaled and memory use is reduced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100