udacity / AdvancedAndroid_TeaTime

115 stars 307 forks source link

OutOfMemoryError because of loading large images OR too slow scrolling #15

Open Mahmoood opened 6 years ago

Mahmoood commented 6 years ago

Loading large images the resizing them by the system either throws OOM error or make the scrolling too slow.

To fix that move the images (tea images) to a new folder named drawable-nodpi instead of locating them inside drawable, in this case the images will be loaded with the same original size without resizing them to go along with device's density.

elmahdiben commented 6 years ago

Thank you !